Commit Graph

18 Commits

Author SHA1 Message Date
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
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00