Commit Graph

20858 Commits

Author SHA1 Message Date
Sam Najian
67455a0752 Bump WC requires at least to L - 2
[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
7ca607f49f Update WC tested up to version
[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
b3aff28335 Acceptance: wait for page elements to load before asserting
[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
489fa9552b Acceptance: prioritize assertion with delay over immediate one
First checking for the delayed assertion and then running the
immediate one reduces the chance of flakiness

[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
d49040a11e Accept: verify form is not loading when checking for select2
[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
64f008e106 Acceptance: increase timeout for ever failing test
The increased timeout helped to get the test green on local

[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
2f0d7137db Acceptance: wait for element to appear then try to clear it
[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Sam Najian
68bd3314d9 Make automation acceptance test css selectors more specific
Less specific css selectors + css grid orders were making the
acceptance tests flaky

[MAILPOET-4783]
2023-02-20 12:26:20 +01:00
Rostislav Wolny
2083adc3d2 Make sure we call initializeMixpanelWhenLoaded when window.MailPoet is defined
The initializeMixpanelWhenLoaded expects window.MailPoet to be defined.
Instead of calling initializeMixpanelWhenLoaded as a side-effect of the import
we can export the function and make sure it is called after window.MailPoet is defined.
[MAILPOET-5065]
2023-02-20 11:34:09 +01:00
Oluwaseun Olorunsola
a4e8bf9a9c Update tests and add test for ab test button
MAILPOET-4972
2023-02-20 11:10:46 +01:00
Oluwaseun Olorunsola
7daa0c9dff Prevent redirecting on Experimental Page
MAILPOET-4972
2023-02-20 11:10:46 +01:00
Oluwaseun Olorunsola
027f3fbefe Setup ab test experiment debugger
MAILPOET-4972
2023-02-20 11:10:46 +01:00
Oluwaseun Olorunsola
e3c4728529 Save event data in storage pending when analytics permission is available.
We are reusing the `MailPoetTrackEvent` method because we overwrite the `MailPoet.trackEvent` method when mixpanel is loaded.

Unfortunately, mixpanel being available does not mean MailPoet has permission to track user events. We are saving the tracking data for when the permission becomes available.

MAILPOET-4972
2023-02-20 11:10:46 +01:00
Oluwaseun Olorunsola
06f231f4b1 Add an A/B test button component and setup basic events.
We are using the `@marvelapp/react-ab-test` package because the original `react-ab-test` package hasn't received an update in a while

MAILPOET-4972
2023-02-20 11:10:46 +01:00
Rodrigo Primo
4966d45d5e Update copy of the MailPoet link added to the WooCommerce task list
[MAILPOET-5063]
2023-02-19 11:24:52 +01:00
Jan Lysý
ae38774f85 Remove checking closed panel
For some reason, the click doesn't work properly when the mouse moves too fast away.
Because we don't check closing of the panel in another test I decided to remove it from this test too.
[MAILPOET-5060]
2023-02-17 07:36:42 +02:00
Jan Jakes
b907ca491b Fix TinyMCE prefixing
[MAILPOET-5052]
2023-02-16 10:50:47 +01:00
John Oleksowicz
abfc33002c Make form close buttons focusable/usable with keyboard
[MAILPOET-4877]
2023-02-16 10:17:50 +01:00
Rodrigo Primo
94954c1601 Update Docker image for oldest acceptance tests to use WP 5.9
[MAILPOET-4893]
2023-02-15 13:21:45 +01:00
Rodrigo Primo
914b5752cd Upgrade minimum required WordPress version to 5.9
[MAILPOET-4893]
2023-02-15 13:21:45 +01:00
Rostislav Wolny
102da43d05 Add escaping of form name when printed in the old notification system
[MAILPOET-5056]
2023-02-15 12:55:02 +01:00
Rostislav Wolny
6cf9f7f1d6 Add link to form editor to the corrupted form data message
[MAILPOET-5056]
2023-02-15 12:55:02 +01:00
Rostislav Wolny
389017c3b9 Display an error notice when a form with malformed settings data is detected
[MAILPOET-5056]
2023-02-15 12:55:02 +01:00
Rostislav Wolny
0b4d18faa0 Prevent form listing crash when a form is missing settings data
[MAILPOET-5056]
2023-02-15 12:55:02 +01:00
David Remer
623010a644 Use dataprovider and clean up early
[MAILPOET-4883]
2023-02-15 12:30:41 +01:00
David Remer
9e62501c30 Update comment
[MAILPOET-4883]
2023-02-15 12:30:41 +01:00
David Remer
95ec3d2fb9 Add integration test to ensure posts are probperly fetched
[MAILPEOT-4883]
2023-02-15 12:30:41 +01:00
David Remer
f60ae7a8ef Set dynamic also correctly for products
[MAILPOET-4883]
2023-02-15 12:30:41 +01:00
Jan Lysý
eef47c5bfb Use small mixin breakpoint
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
a91108f52e Use more optimized image
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
f0772cc793 Add acceptance test for homepage upsell
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
fe20687ae8 Add batch method for creating subscribers
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
da5051f758 Add purchase URL to upsell
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
a9d8a2b164 Add condition for displaying
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
c6846a2d4c Make close button optional
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
81ffe6e4f9 Add styles for upsell component
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
ab3d27569f Make upsell component closable
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Jan Lysý
337dcb603f Add homepage upsell component
[MAILPOET-4830]
2023-02-15 12:19:35 +01:00
Rostislav Wolny
084022010b Release 4.6.2 2023-02-14 15:15:17 +01:00
Rostislav Wolny
b83dac2ed9 Use setting types instead of inline types when setting tracking settings
[MAILPOET-5059]
2023-02-14 12:46:04 +01:00
Rostislav Wolny
ddf4c9109c Use the value of YesNo component directly as it is already boolean
[MAILPOET-5059]
2023-02-14 12:46:04 +01:00
Rostislav Wolny
40cdb9a766 Fix tracking settings configuration on WooCommerce setup wizard step
When testing the woo wizard step i noticed that always set tracking to
'partial' even if the checkbox is checked. When debugging I found that the allowed value
is not a string but boolean. I tested this in wizard and also on the WooCommerce setup page.
I needed to update the acceptance test because it was clicking on 'no' and asserting the outcome as 'yes' was clicked.
[MAILPOET-5059]
2023-02-14 12:46:04 +01:00
Rostislav Wolny
9cf70c6c3b Sync WooCommerce settings from Woo step in wizard to store
[MAILPOET-5059]
2023-02-14 12:46:04 +01:00
Rostislav Wolny
333b121b2a Update store when saving tracking preferences in wizard
[MAILPOET-5059]
2023-02-14 12:46:04 +01:00
Rodrigo Primo
1de328abaa Use settings store instead of local component state for sender data
In [MAILPOET-4818], we started using the settings Redux store to handle
adding the MSS key in the last step of the Welcome Wizard. This
introduced a bug in the previous steps as the same Redux store is not
used. Those steps rely on the component state to track changes to their
fields. This meant that once the user completed the last step, the
changes made in the previous steps were ignored and the default values
for the settings was saved to the database.

This commit fixes this bug for the first step of the wizard by using the
same settings Redux store to track changes to the sender name and
address.

[MAILPOET-5059]
2023-02-14 12:46:04 +01:00
Rodrigo Primo
6b4b1dfcbe Add basic acceptance test for the welcome wizard
[MAILPOET-5051]
2023-02-14 12:46:04 +01:00
alex-mailpoet
66dc6e67ab Remove unnecessary override
[MAILPOET-4872]
2023-02-13 14:13:44 -03:00
alex-mailpoet
d8d859d209 Declare properties to avoid dynamic usage in codeception
[MAILPOET-4872]
2023-02-13 14:13:44 -03:00
alex-mailpoet
4bd7dd4ad6 Fix codeception PHP 8.2 deprecation notices
[MAILPOET-4872]
2023-02-13 14:13:44 -03:00
Sam Najian
359f134881 Fix merge conflict after rebasing trunk
[MAILPOET-4633]
2023-02-13 16:56:54 +01:00