Commit Graph

20 Commits

Author SHA1 Message Date
Pavel Dohnal
56e1a69e5b Add skipping new email editor acceptance test on WP 6.4
[MAILPOET-6055]
2024-05-03 10:55:53 +02:00
Veljko
6c03abe477 Update all places with new WP 6.5
[MAILPOET-6003]
2024-04-19 09:15:55 +02:00
Jan Lysý
c9b49670e7 Add new email editor tests to allowed to skip list
[MAILPOET-5987]
2024-03-28 16:40:51 +01:00
Veljko
9a6ee9c46a Enabling AutomateWoo acceptance tests
[MAILPOET-5721]
2024-01-22 14:48:00 +01:00
Veljko
a8a31cb97f Add skipped test scenarios to allowed skipped tests
[MAILPOET-5689]
2023-11-20 09:58:35 +01:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
9d55d3f134 Use "automation" instead of "workflow"
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
Rodrigo Primo
78cc8743d5 Skip tests that are failing to unblock a release preparation
Those two tests that are failing are related to the automation feature
which is not yet available to the users. So skipping them should be
safe.

[MAILPOET-4784]
2022-11-07 23:42:16 +03:00
Rodrigo Primo
ea16472ab1 Use Codeception\TestInterface::getName() instead of Codeception\TestInterface::getMetadata()
This commit changes the code to use $event->getTest()->getName() instead
of $event->getTest()->getMetadata()->getName() to get the name of the
current test. This was necessary because the latter was returning null
for integration tests while the former works both for acceptance and
integration tests. I did not investigate why Codeception behaves this
way due to lack of time, there is a chance that this is a bug in
Codeception.

Since $event->getTest() returns an instance of TestInterface and this
class does not define getName() (but the call works probably due to some
magic method), it was necessary to edit phpstan.neon to skip a PHPStan
error.

[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
713b0255f7 Add WooCommerce Subscriptions tests to $allowedToSkipList list
We skip those tests in some cenarios because WooCommerce Subscriptions
does not support Woo HPOS yet. When the code to skip them was added, we
forgot to add those tests to the list of tests that are allowed to skip
even in the trunk and release branches. This is done now in this commit.

[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
2aa63bbb8e Fix typo
[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
e0cab11293 Revert "Fix typo"
This reverts commit da110bed80.
2022-11-03 12:29:48 -03:00
Rodrigo Primo
bffafdcd33 Revert "Add WooCommerce Subscriptions tests to $allowedToSkipList list"
This reverts commit 6b4d2409cc.
2022-11-03 12:29:48 -03:00
Rodrigo Primo
6b4d2409cc Add WooCommerce Subscriptions tests to $allowedToSkipList list
We skip those tests in some cenarios because WooCommerce Subscriptions
does not support Woo HPOS yet. When the code to skip them was added, we
forgot to add those tests to the list of tests that are allowed to skip
even in the trunk and release branches. This is done now in this commit.

[MAILPOET-4765]
2022-11-02 10:27:34 +01:00
Rodrigo Primo
da110bed80 Fix typo
[MAILPOET-4765]
2022-11-02 10:27:34 +01:00
Rodrigo Primo
c4c94c2db0 Change the way getName() is called to get rid of a PHPStan error
[MAILPOET-4695]
2022-10-06 12:16:47 +02:00
Rodrigo Primo
7cb6609faa Skip WooCommerce Subscriptions test when Woo COT is enabled
Currently, WooCommerce Subscriptions doesn't support WooCommerce Custom
Orders Table, so we want to skip all WooCommerce Subscriptions related
tests when Woo COT is enabled.

[MAILPOET-4695]
2022-10-06 12:16:47 +02:00
Rodrigo Primo
ef8bc9250a Change codeception extension to catch skipped tests
This commit changes the Codeception extension CheckSkippedTestsExtension
that we use to generate an error when tests are skipped in the `trunk` and
`release` branches. Now this extension accepts a list of tests that can
be skipped in those two branches. This will be necessary as part of the
project to support WooCommerce Custom Orders Tables as in some scenarios
we want to skip WooCommerce Subscriptions tests and in some we don't.
For now, WooCommerce Subscrptions doesn't support Woo COT, so we want to
run Woo Subscriptions tests when COT is disabled, but we want to skip
then when COT is enabled.

The main change is that now we are using the `TEST_SKIPPED` Codeception event
instead of the `SUITE_AFTER` event. This change was necessary as in the
latter event we don't have any information about the tests that were
skipped.

[MAILPOET-4695]
2022-10-06 12:16:47 +02:00
Rodrigo Primo
c214eb4c85 Use trunk instead of master as the branch where tests cannot be skipped
[MAILPOET-3466]
2022-05-31 11:23:33 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00