Commit Graph

50 Commits

Author SHA1 Message Date
e7e7097dcf Switch to Woo 8.8.0-rc.1 2024-04-19 09:15:55 +02:00
2824750b5d Update circle ci config 2024-04-19 09:15:55 +02:00
dcfcef3bb0 Update docker entrypoint 2024-04-19 09:15:55 +02:00
00cdde82bd Test against latest 8.8.0-rc.1 2024-04-19 09:15:55 +02:00
5331681b83 Switch to Woo Core 8.6.0 2024-04-19 09:15:55 +02:00
74f239c372 Temporary switch to Woo 8.6.1
[MAILPOET-5955]
2024-03-18 17:12:05 +01:00
2bacedc189 Turn off MAILPOET_USE_CDN when running acceptance tests 2024-03-12 11:29:04 +00:00
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
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
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
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
de81998ae3 Remove PHPMailer fix for older WP versions
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
e371ec03b9 Fix languages folder creation for tests
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
0837a75582 Fix failing tests
[MAILPOET-5713]
2023-12-06 15:39:39 +01:00
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
5a9d8f3372 Add creating lang directories if are missing
[MAILPOET-4891]
2023-09-14 21:03:08 +02:00
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
0cbe4fa9fd Add AutomateWoo opt-in acceptance test
[MAILPOET-5057]
2023-03-06 11:22:58 +01:00
1cee4e67e8 Print DB tables with engine and collation on test env star
[MAILPOET-4832]
2022-12-14 12:00:49 +01:00
917d64a3e3 Print sql_mode when starting test environment
[MAILPOET-4887]
2022-12-12 13:59:09 +01:00
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
324c03e8b9 Print WordPress version when starting test environment
[MAILPOET-4668]
2022-11-14 17:20:43 +01:00
eca4a68fec Revert broken test fix
Reverts: https://github.com/mailpoet/mailpoet/pull/4511

[MAILPOET-4796]
2022-11-09 15:58:36 +01:00
9a72e361b1 Fix plugin activtion for the smtp plugin
[MAILPOET-4785]
2022-11-09 12:59:29 +03:00
9ab6ebbe0d Use always SMTP to send wp_mail
[MAILPOET-4785]
2022-11-09 12:59:29 +03:00
7b7c9b18b6 Fail acceptance tests with non-zero code if activation of mailpoet fails
[MALPOET-4662]
2022-09-26 09:24:05 +02:00
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
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
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
593157f702 Fix mailpoet-premium activation in nightly tests
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
ebdeabaccf Add option to disable COT Synchronization into integration and acceptance tests
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
be9643515e Add option for toggle COT in integration and acceptance tests
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
81f3a0420a Fix activation of plugins for multisite environments
We need to provide correct --url parameter to WP CLI commands so that
in multisite environment the correct site is affected.
Otherwise the plugins might not be activated for site we run tests on.
[MAILPOET-4625]
2022-09-08 16:53:49 +02:00
d643928f66 Fix indentation of code for installing WooCommerce core
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
77dfc8602f Skip download and installation of plugins if they are not needed
In case $SKIP_PLUGINS is set to 1 we don't activate installed plugins so it makes no sense to install them as well.
In this commit we add also skipping the installation of the plugins.
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
8d564a52f1 Add option for skipping 3rd party plugins activation in integration tests
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
bb7053306a Alway print versions of active plugins in tests
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
c9ada07ad4 Include Woo plugins for integration tests
MAILPOET-4566
2022-09-08 13:02:52 +02:00
3b5d737143 Use WP ClI for setting wp-config.php constants
We experienced issues with replacing constants in wp-config.php using regular expressions.
E.g. it may stop working when new WP release changes default contents of the wp-config.php
Using WP CLI seems to be more reliable way of doing it.
[MAILPOET-4511]
2022-07-29 10:33:05 +02:00
1e1ef12d42 Remove no longer necessary WP CLI fix from acceptance tests
This seems to be already fixed in https://core.trac.wordpress.org/ticket/25239
[MAILPOET-4511]
2022-07-29 10:33:05 +02:00
3d4155f6cc Fix setting wp-config.php for acceptance tests
The wp-config properties were not set correctly because there reg exp
that was used in sed was no longer matching the default value.
This was causing e.g. that errors and warnings were not caught by the acceptnace tests.
[MAILPOET-4511]
2022-07-29 10:33:05 +02:00
1396a979f5 Fix PHPMailer on WP 5.6 in acceptance tests
[MAILPOET-4481]

Use SMTP in PHPMailer on WP 5.6 because its Docker container
has a misconfigured mail() function (no sendmail or alternative)
2022-07-27 08:50:03 +02:00
393154e080 Adjust used Docker container to run integration tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
d41e395a74 Remove doctrine/annotations library before we start acceptance tests
The doctrine/annotation is not present in the production build.
This change makes the acceptance tests runtime closer the production environment.
[MAILPOET-4218]
2022-04-04 16:24:15 +02:00
4ce1c4f4e6 Use WPOrgDownloader for WC blocks downloading
[MAILPOET-3937]
2022-02-10 12:35:14 +01:00
7746d924f1 Add plugin WC Blocks activation into docker-entrypoint.sh
[MAILPOET-3937]
2022-02-10 12:35:14 +01:00
1e443ae295 Add downloading WooCommerce Memberships into docker-entrypoint.sh
[MAILPOET-4095]
2022-02-03 09:38:20 +01:00
f2f54e80cb Conditionally load theme on tests
[MAILPOET-4014]
2022-02-02 14:10:55 +01:00
0fb8bf24bb Switch theme in acceptance tests to 2021
[MAILPOET-4014]
2022-02-02 14:10:55 +01:00
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00