Commit Graph

18419 Commits

Author SHA1 Message Date
 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
John Oleksowicz
cd0b795ac8 Extract customer creation/cleanup
This also ensures that cleanup always runs after all integration tests

MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
f9d6e65ece Ensure personal data exporter includes all custom fields
The test testExportSubscriberWithCustomField was only passing before
because we were truncating tables in between tests, so the custom field
id ended up matching the subscriber custom field id coincidentally.

MAILPOET-5145
MAILPOET-5185
2023-04-07 12:11:12 -05:00
John Oleksowicz
2292ab09a8 Don't assume auto increment of 1
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
4c3e7e62d4 Split up problematic test
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
33f744e9be Simplify problematic test
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
c75bc388c9 Remove unnecessary cleanup code
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
57eb438eb8 Don't assume auto increment of 1
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
ae442e191c Add database cleaner for integration tests
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
520e7166cf Don't stop on first failure
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Veljko
c25567ae64 Remove name parameter from circleci config
[MAILPOET-5196]
2023-04-07 15:45:50 +02:00
Veljko
c8c88a8704 If there is no k6 cloud token set in env dont stream to cloud
[MAILPOET-5196]
2023-04-07 15:45:50 +02:00
Veljko
f994d1b232 Streamline test results output to k6 cloud
[MAILPOET-5196]
2023-04-07 15:45:50 +02:00
Veljko
d6991eaa17 Update env sample file 2023-04-05 11:32:08 +02:00
Veljko
0e15b459c0 Reorder tests 2023-04-05 11:32:08 +02:00
Veljko
3212da8deb Set scenario thresholds to pass in 95% times 2023-04-05 11:32:08 +02:00
Veljko
57dbb2fdb4 Set scenario thresholds to be on a safe side 2023-04-05 11:32:08 +02:00
Veljko
6acebd9145 Update newsletter stats test 2023-04-05 11:32:08 +02:00
Veljko
db1416014e Update tests 2023-04-05 11:32:08 +02:00
Veljko
c2ad02514c Add await for all pages 2023-04-05 11:32:08 +02:00
Veljko
d6c2fa5f96 Add taking screenshots across all tests 2023-04-05 11:32:08 +02:00
Veljko
e63ead696e Update taking screenshots 2023-04-05 11:32:08 +02:00
Veljko
f1cb67bd3f Revert changes 2023-04-05 11:32:08 +02:00
Veljko
c94aad885c Try integration 2023-04-05 11:32:08 +02:00
Veljko
06e60730d3 Integrate k6 cloud and circleci 2023-04-05 11:32:08 +02:00
Veljko
fb6f86543c Revert it back 2023-04-05 11:32:08 +02:00
Veljko
6594975d92 Testing integration 2023-04-05 11:32:08 +02:00
Veljko
423d445d8f Add k6 orb 2023-04-05 11:32:08 +02:00
Veljko
24f6ebaf0c Again move k6 cloud true 2023-04-05 11:32:08 +02:00
Veljko
72d0af6951 Move cloud true to another place 2023-04-05 11:32:08 +02:00
Veljko
0b1d0b4960 Integrate k6 cloud and CircleCI 2023-04-05 11:32:08 +02:00
Veljko
51ee9637d9 Remove caching in CI 2023-04-05 11:32:08 +02:00