Commit Graph

19650 Commits

Author SHA1 Message Date
John Oleksowicz
0c8c61cede Extract WooCommerce fields into separate functions
MAILPOET-5220
2023-04-13 18:19:59 +02:00
John Oleksowicz
d1abde13f8 Don't validate single order value as date field
MAILPOET-5220
2023-04-13 18:19:59 +02:00
John Oleksowicz
3681852041 Better naming
MAILPOET-5220
2023-04-13 18:19:59 +02:00
John Oleksowicz
d3debdd29a Prevent error when switching between filter types
MAILPOET-5220
2023-04-13 18:19:59 +02:00
John Oleksowicz
8700178f01 Remove debug code
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
5e9b83bf2d Add required cleanup
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
aaa08d5ab6 Add missing group
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
cf7cfe40f8 Remove unused imports
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
6b2faeeecb Remove unnecessary cleanup
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
f3f7d4dc61 Remove redundant tests
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
4576dd289f Add woo filter helper tests for order status
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
096ab74ee3 Use helper for creating customers
MAILPOET-5145
2023-04-13 17:56:13 +02:00
John Oleksowicz
40fc3882f3 Use correct statuses for category filter
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
483acb0040 Use correct statuses for single order value
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
30c8ce0839 Use correct statuses for total spent
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
2caa535098 Use correct statuses for product filter
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
aa7bd6eb67 Use correct statuses for number of orders filter
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
192bdce421 Refactor tests to use helper
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
a2d6da8c61 Add test helper for checking emails
MAILPOET-5083
2023-04-13 17:56:13 +02:00
Sam Najian
a9d89ff514 Use onChange instead of onClick for check boxes
[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
84f263db2e Add missing translation domain
[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
c0fb4c44ff Fix failing js tests
The test suits need window.mailpoet_feature_flags to be defined
in case the feature flags are checked in the code

[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
b276202e45 Add brand/theme colors and typography to boxes
[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
52357eb586 Adjust box bg and border on select
[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
931c6ca198 Convert sidebar.js to tsx
[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
152b9af871 Add the boxes and the check boxes
[MAILPOET-5193]
2023-04-12 11:20:39 +02:00
Sam Najian
325dc9e9f6 Remove fix for lodash/underscore conflict (MediaManagerBehavior)
[MAILPOET-5127]
2023-04-12 08:37:16 +02:00
Rodrigo Primo
5d1ae1f9d0 Force sync with customers lookup table after a change in Woo core
A unintentional side-effect in Woo core < 7.6 synched the customer
lookup table immediately after the creation of an order. This
unintentional behavior was removed in Woo 7.6 and now we need to call
\Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore::sync_order_customer()
explicitly for Woo to add to the customer lookup table.

Without this change, a few tests in WooCommerceCountryTest were failing
when running with Woo 7.6. As far as I could check this change does not
affect anything else in MP other than the tests.

[MAILPOET-5148]
2023-04-11 11:30:09 -05:00
Veljko
8728229659 Decrease nightly tests max duration to 12m and update email in test
[MAILPOET-5208]
2023-04-11 18:09:21 +02:00
Rodrigo Primo
3077723a27 Release 4.11.1 2023-04-11 11:35:38 -03:00
 Ján Mikláš
3848c3e653 Add missing translations for paused emails
[MAILPOET-5201]
2023-04-10 13:03:18 +02:00
 Ján Mikláš
63be8969f3 Improve strings based on translators' feedback
[MAILPOET-5201]
2023-04-10 13:03:18 +02:00
John Oleksowicz
428f52fdb6 Update tests not included in original PR
MAILPOET-5145
2023-04-07 20:17:05 -05:00
John Oleksowicz
6c03702fbd Fix test failure that was occurring for multisite
A previous test must have sent a confirmation email to a subscriber with
 the same ID.

 This didn't seem worth adding to the cleanup extension since it was
 only causing a single failure.

MAILPOET-5145
2023-04-07 20:17:05 -05:00
John Oleksowicz
4b35b24f6a More accurate name for cleanup property
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
b296e40077 Extract Carbon datetime reset to test bootstrap
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
70e6447e28 Extract WPFunctions reset to test bootstrap
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
81274b1691 Replace hardcoded custom field ID with the actual one
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
c1babe49db Remove more no longer necessary test cleanups
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
90bbca0987 Clean all mailpoet tables by prefix
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
18b953e68c Add tmpfs mount for faster MySQLing
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
e7f766aedf Remove empty _afters
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
f90e869402 Clean up after automations too
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
6a2da4645b Remove apparently unnecessary DB query
Removing this code didn't result in any tests failing, so I can only
assume it isn't required for anything.

We were occasionally seeing primary key constraint violations when
attempting to execute this query.

MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
8bb917cd09 Prevent high order IDs from breaking tests
These tests were starting to fail if previous tests had created more
orders than the batch size

MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
9455eebb60 Add back scheduled task cleanup
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
d112d4088f Fix issue with IDs
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
376dca1098 Remove unnecessary truncating
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
cf67ad2a83 Add missing parent::_after calls
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
c848c62ee9 Remove unnecessary cleanup code
MAILPOET-5145
2023-04-07 12:11:12 -05:00