Commit Graph

83 Commits

Author SHA1 Message Date
Veljko
286c167c01 Revert docker compose and update k6 docker compose 2024-04-19 09:15:55 +02:00
Veljko
9c5033b5ff Update docker compose with newer PHP 2024-04-19 09:15:55 +02:00
Veljko
e7e7097dcf Switch to Woo 8.8.0-rc.1 2024-04-19 09:15:55 +02:00
Veljko
2824750b5d Update circle ci config 2024-04-19 09:15:55 +02:00
Veljko
dcfcef3bb0 Update docker entrypoint 2024-04-19 09:15:55 +02:00
Veljko
00cdde82bd Test against latest 8.8.0-rc.1 2024-04-19 09:15:55 +02:00
Veljko
5331681b83 Switch to Woo Core 8.6.0 2024-04-19 09:15:55 +02:00
Veljko
6c03abe477 Update all places with new WP 6.5
[MAILPOET-6003]
2024-04-19 09:15:55 +02:00
Veljko
74f239c372 Temporary switch to Woo 8.6.1
[MAILPOET-5955]
2024-03-18 17:12:05 +01:00
Mike Jolley
2bacedc189 Turn off MAILPOET_USE_CDN when running acceptance tests 2024-03-12 11:29:04 +00:00
Rostislav Wolny
ea681ea87b Activate TT1 theme for subsite and main site when we run multisite tests
It seems that when we use multisite configuration the integration tests load site from test.local/php7_multisite
but acceptance tests run on test.local
So let's activate correct theme on both
[MAILPOET-5925]
2024-02-28 12:26:56 -06:00
Rostislav Wolny
8629df7684 Remove unnecessary code for activation twentynineteen theme
After we updated the oldest supported WP and PHP versions, we don't need this theme anymore.
When I checked recent builds, I notice we are getting:

Error: The 'twentynineteen' theme could not be found.

So it already works for some time without the theme being activated.
[MAILPOET-5925]
2024-02-28 10:38:10 -06:00
Rostislav Wolny
c39b498e59 Remove test dependency on WooCommerce Blocks
The plugin was integrated into WooCommerce Core and is no longer available for download.
[MAILPOET-5925]
2024-02-28 10:38:10 -06:00
Rostislav Wolny
ea22c8b2e9 Install the desired theme in the test environment also for multisite.
There is an integration test that is intentionally failing in case
we changed the theme we used for the test.
This commit ensures we activate correct theme also for multisite.
[MAILPOET-5741]
2024-02-28 10:38:10 -06:00
Jan Lysý
de81998ae3 Remove PHPMailer fix for older WP versions
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
Brezo Cordero
e371ec03b9 Fix languages folder creation for tests
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
Oluwaseun Olorunsola
0837a75582 Fix failing tests
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
Rodrigo Primo
0270549a47 Install and activate the twentytwentyone theme
Because we have problems with the new theme we try to address it in a new ticket.
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
Rodrigo Primo
6419c50fa7 Update WP version used when running the tests to 6.4
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
Jan Jakes
4a729bd08f Use tmpfs for /dev/shm also in mysql container
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Lysý
5a9d8f3372 Add creating lang directories if are missing
[MAILPOET-4891]
2023-09-14 21:03:08 +02:00
Rostislav Wolny
d24377fa15 Fix issue with saving session in acceptance tests for newer chrome versions
Using /dev/shm:/dev/shm as volume was not working when using a newer chrome
version on MAC.

[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
David Remer
7ffe9a53ac Switch to new WordPress version
[MAILPOET-5527]
2023-08-17 12:26:56 +02:00
Rodrigo Primo
4e3f540bc1 Use WP 6.2 when running the acceptance tests
Just bumping the WP version used in the acceptance tests to the latest
version.

[MAILPOET-5075]
2023-04-25 14:24:11 -03:00
John Oleksowicz
18b953e68c Add tmpfs mount for faster MySQLing
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Sam Najian
398f8ffddd Accomadate the translations placement change in WP6.2
- Compatible WPCLI is installed
- Translation folder is make writable

[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
alex-mailpoet
0cbe4fa9fd Add AutomateWoo opt-in acceptance test
[MAILPOET-5057]
2023-03-06 11:22:58 +01:00
Rostislav Wolny
1cee4e67e8 Print DB tables with engine and collation on test env star
[MAILPOET-4832]
2022-12-14 12:00:49 +01:00
Rostislav Wolny
1e5cfb4eaf Switch acceptance tests oldest to MYSQL 5.5
[MAILPOET-4832]
2022-12-14 12:00:49 +01:00
Rostislav Wolny
917d64a3e3 Print sql_mode when starting test environment
[MAILPOET-4887]
2022-12-12 13:59:09 +01:00
Rostislav Wolny
a3d51b2b08 Add ANSI and ONLY_FULL_GROUP_BY to sql_mode for tests environment
The default modes shipped with the mysql or mariaDB docker containers are
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
In this commit I added ANSI, ONLY_FULL_GROUP_BY so that we are sure that we don't break compatibility with those modes
[MAILPOET-4887]
2022-12-12 13:59:09 +01:00
Jan Jakes
82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
b6a37f274c Fix Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
7db40b27b5 Fix errors automatically with phpcbf
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Jan Lysý
fe2df00a8c Use the latest WP version as default for acceptance tests
[MAILPOET-4841]
2022-11-26 09:09:00 +01:00
Rostislav Wolny
e677169a51 Update Mysql image for integration and acceptance tests
[MAILPOET-4851]
2022-11-25 13:37:08 +01:00
Rostislav Wolny
e268eac378 Add healthcheck for mysql service in the test environment
This is replacement for custom wait scripts and also should ensure
that DB is ready before starting the wordpress serive container,
which was missing the check.
[MAILPOET-4851]
2022-11-25 13:37:08 +01:00
Jan Lysý
1de276378f Use different container names for different parallel runs
[MAILPOET-4851]
2022-11-24 15:48:43 +01:00
Rostislav Wolny
c8636aac6f Update selenium and chrome image
[MAILPOET-4848]
2022-11-24 10:34:59 +01:00
Rostislav Wolny
324c03e8b9 Print WordPress version when starting test environment
[MAILPOET-4668]
2022-11-14 17:20:43 +01:00
Jan Jakes
eca4a68fec Revert broken test fix
Reverts: https://github.com/mailpoet/mailpoet/pull/4511

[MAILPOET-4796]
2022-11-09 15:58:36 +01:00
David Remer
9a72e361b1 Fix plugin activtion for the smtp plugin
[MAILPOET-4785]
2022-11-09 12:59:29 +03:00
David Remer
9ab6ebbe0d Use always SMTP to send wp_mail
[MAILPOET-4785]
2022-11-09 12:59:29 +03:00
Rostislav Wolny
7b7c9b18b6 Fail acceptance tests with non-zero code if activation of mailpoet fails
[MALPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
3bcb55733a Allow write to generate folder for premium plugin in tests
We run the acceptance test with WP_DEBUG to log all errors and it also causes
that we autoregenerate twig templates.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
17a990c94d Fix premium plugin detection
When mounted the plugin was mounted directly to the plugin folder get_plugins() function
ignored it. We had a similar issue in the past when we were using a softlink.
Copying the plugin is a workaround that fixes the issue.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
d3f31311e6 Fix exception missing doctrine annotations files in tests
We need to delete those files before we activate the plugin.
When we do it after the activation there might already be a background request and we may delete those files
during the request.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
593157f702 Fix mailpoet-premium activation in nightly tests
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
71340f28db Update chrome in acceptance test
Updating chrome version to improve stability.
[MAILPOET-4556]
2022-09-21 14:02:45 +02:00
Rostislav Wolny
ebdeabaccf Add option to disable COT Synchronization into integration and acceptance tests
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00