Commit Graph

51 Commits

Author SHA1 Message Date
Veljko
f7fbe3fc8c Try adding product to checkout directly 2024-03-07 11:13:03 +01:00
Veljko
f2db5c71d0 Add product to cart before test 2024-03-07 11:13:03 +01:00
Veljko
300bedceea Try reordering scenario position in test 2024-03-07 11:13:03 +01:00
Veljko
3db8cfc656 Improve adding product to cart method 2024-03-07 11:13:03 +01: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
Oluwaseun Olorunsola
19f068decd Fix Nightly acceptance_oldest tests 2023-11-22 09:33:08 +01:00
veljko
38cc3bd56f Improve AcceptanceTester to be compatible with both old and new WC 2023-11-21 15:18:22 +01:00
Veljko
caa5609900 Remove unnecessary twice waiting for element be clickable 2023-11-17 18:09:00 -03:00
Veljko
201098b394 Check for create account ID instead label 2023-11-17 18:09:00 -03:00
Veljko
8ca56cef42 Revert method to use cod by default
[MAILPOET-5689]
2023-11-17 18:09:00 -03:00
veljko
5273934745 Update AcceptanceTester to align new WC experience
[MAILPOET-5689]
2023-11-17 18:09:00 -03:00
Rodrigo Primo
eba025a345 Replace expect()->stringNotContainsString() with verify()->stringNotContainsString()
codeception/verify 2.1 removed support for expect()->stringNotContainsString() so we need
to replace it with verify()->stringNotContainsString().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
0d2f6e0776 Replace expect()->stringContainsString() with verify()->stringContainsString()
codeception/verify 2.1 removed support for expect()->stringContainsString() so we need
to replace it with verify()->stringContainsString().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
afe378ba22 Replace expect()->equals() with verify()->equals()
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
 Ján Mikláš
12f797c223 Fix capitalization of MailPoet and Premium
[MAILPOET-5579]
2023-09-07 10:51:00 +03:00
Veljko
2d3a8fadf7 Include scenario to cover issue we had in the past
[MAILPOET-5334]
2023-07-27 13:34:18 +02:00
Rodrigo Primo
3782fb4bdd Update acceptance tests to reflect separating segments and lists
Segments and lists were separated into different pages in a previous
commit. This commit updates the acceptance tests to reflect this change.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Brezo Cordero
bc031e5936 Fix acceptance tests with WC latest
[MAILPOET-5449]
2023-07-10 10:52:53 -05:00
Veljko
6b86fa7b9a Update tests and add new helper method
[MAILPOET-5318] & [MAILPOET-5319]
2023-06-15 17:07:50 +02:00
Veljko
16390c0f2d Update methods in tester 2023-06-05 13:09:59 +02:00
Veljko
8f1017aa9b Change helper method name to amOnSiteHomepage
[MAILPOET-5312] & [MAILPOET-5313]
2023-06-05 13:09:59 +02:00
Veljko
3728421440 Updated 3 tests and added new methods to tester
[MAILPOET-5312] & [MAILPOET-5313]
2023-06-05 13:09:59 +02:00
alex-mailpoet
4f1afa388f Clean up transient cache in tests where necessary
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
0cbe4fa9fd Add AutomateWoo opt-in acceptance test
[MAILPOET-5057]
2023-03-06 11:22:58 +01:00
Rodrigo Primo
a9a3c53245 Fix PHPStan errors in the acceptance tests
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Jan Lysý
caa76983e4 Ensure action scheduler jobs are done
[MAILPOET-4864]
2022-12-02 14:58:48 +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 Lysý
b9c5dddbaf Try switch group multiple times
[MAILPOET-4861]
2022-11-29 10:58:11 +01:00
David Remer
7db40b27b5 Fix errors automatically with phpcbf
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Jan Lysý
375f2b13c5 Try select option in select 2 multiple times
[MAILPOET-4555]
2022-11-25 13:21:42 +01:00
Rostislav Wolny
b140011f92 Update minimal version check for WooCommerceCheckoutBlockCest
Since we support the Woo Blocks integration only for versions from 8.0.0
we need to update minimal version check code for acceptance test.
[MAILPOET-4668]
2022-11-14 17:20:43 +01:00
Jan Jakes
9063dc3079 Remove duplicities in naming
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
Jan Jakes
9d55d3f134 Use "automation" instead of "workflow"
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
David Remer
bd87c09e1a Add acceptance test for automation workflow
* Creates an simple welcome email workflow
* Activates it
* Subscribes and checks whether the email arrives in the inbox

[MAILPOET-4530]
2022-10-19 13:34:45 +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
Rostislav Wolny
791c9ff002 Add retries for switching to the next tab
This is an attempt to fix a Webdriver's exception we get
when trying to switch to a new tab after clicking on a link in an email.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
ecf2a1f6b1 Reintroduce retries when hovering over a listing row
Sometimes the page may change after the mouseOver e.g. when a notice message dissapper.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
98b4050ce9 Improve stability of payment method selection in tests
The scrollTo was also sometimes failing when payments methods re-rendered in the same time.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
14a2a49c66 Try an alternative fix for flaky clicks on row actions in listing table
The previous fix with with multiple retries didn't help with the flakiness.
I'm trying to improve the click functionality by hovering on the specific table cell instead of the row
and adding wait for the action link being clickable.
I also tried to make our custom click method more robust.
[MAILPOET-4556]
2022-09-21 14:02:45 +02:00
Rostislav Wolny
16807fe9e3 Update and fix comments related to usage of Action Scheduler in cron
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Rostislav Wolny
aa030fde9c Simplify triggering background jobs in acceptance tests
After enabling using the action scheduler via WP CLI it its much simpler to use WP CLI then
manipulating WP-Cron schedules.
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Rostislav Wolny
791a0631b5 Add Acceptance test helper for triggering background job
It may take up to one minute for Action Scheduler to start.
This commit adds a helper method that sets WP Cron trigger for action scheduler and
MailPoet action in Action Scheduler to run immediately and triggers WP Cron
that triggers action scheduler by page reload.

[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Jan Lysý
72ec1620f6 Add minimal plugin requirements for blocks checkout tests
[MAILPOET-3937]
2022-02-10 12:35:14 +01:00
Jan Lysý
ec98b81116 Add acceptance tests for WC Blocks checkout
[MAILPOET-3937]
2022-02-10 12:35:14 +01:00
Jan Lysý
5b1374b0fe Use native function for work with checkoxes
[MAILPOET-4125]
2022-02-09 10:37:42 +01:00
Jan Lysý
8ff7b32cf3 Add more attempts for click in table
[MAILPOET-4125]
2022-02-09 10:37:42 +01:00
wxa
46a9baba1d Add tests
[MAILPOET-3880]
2022-01-27 16:14:14 +01:00
Rodrigo Primo
710f61c132 Revert "Fixed acceptance test errors"
This reverts commit f36b61e7f3.
2022-01-19 16:16:55 +01:00
Rodrigo Primo
36aa3a3896 Revert "Fixed fixed types error"
This reverts commit a6a22133d7.
2022-01-19 16:16:55 +01:00
Rostislav Wolny
c034968233 Introduce new assertCssProperty method for acceptance tester
When running acceptance tests on a seleniarm image I noticed that Chromium (used in seleniarm)
formats a value in a style attribute in some cases differently than Chrome.
From observations it seems that Chromium doesn't format it but Chrome always adds spaces between property name and value.
This causes that some assertions e.g. stringContains('border-width: 10px;') may pass in Chrome but fail in Chromium.
This commit adds new method assertCssProperty which checks exact value of applied CSS and fixes test EditorTextInputStylesCest.

[MAILPOET-4029]
2022-01-19 12:21:15 +01:00