Commit Graph

16408 Commits

Author SHA1 Message Date
 Ján Mikláš
a1c9be337f Update Black Friday content
- added timezone to sale duration
- changed date format
- link to annual billing period
- added tracking
- switch dates in "shouldDisplay" condition, so it reads as "from to" rather than "to from"
- capitalized button

[MAILPOET-4670]
2022-09-27 11:05:34 +02:00
Rostislav Wolny
b2e6cccc3a Update Black Friday notice for the current year campaign
[MAILPOET-4670]
2022-09-27 11:05:34 +02:00
Rostislav Wolny
d665688810 Update Circle CI machine to ubuntu-2204:2022.07.1
The newer machine contains newer versions of docker etc.
I might improve tests stability.
2022-09-27 10:09:51 +02:00
Rodrigo Primo
8faa33643c Remove old Segment model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
154a812776 Make SegmentsRepository::getWPUsersSegment() behave like Segment::getWPSegment()
This commit changes SegmentsRepository::getWPUsersSegment() so that it
behaves like Models\Segment::getWPSegment() and creates a WP segment
when none is found. This is needed to replace the latter with the former
in a subsequent commit.

[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
ef66a21096 Remove old ScheduledTask model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
bc1ee3caa2 Remove old Subscriber model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
b15a6723cf Remove old SendingQueue model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
8d4a1140a9 Remove old Newsletter model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Jan Lysý
2cf3f37f5c Fix creation notification history records
[MAILPOET-4679]
2022-09-26 13:23:28 +02:00
Oluwaseun Olorunsola
d50aee988e Extract logic to get email domain to Helpers class
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
a006701d78 PR feedback: add type hints, create new methods and save on extra api request
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
32a58301b0 Update test cases in ServicesTest
support sending congratulatory email when sender domain is verified but
no authorized email address

MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
9e19e157c8 Update test cases in AuthorizedEmailsControllerTest
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
392f06cab0 Refactor AuthorizedEmailsControllerTest to use custom mocks
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
31732dbf3b Update tests, update dependencies
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
5bcb80d2a0 Allow Congratulatory Mss Email with any email from verified domains
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
ff4852fdc2 Allow user resume sending when using email from verified domains
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
bd7da6b28c Allow user send with any email address from verified domain
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
bb42da6a87 Allow any email address from verified domain in Newsletter send field
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
d45aaa9157 Allow saving any email address from verified domain in settings
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
fed8099227 Do not throw an error for checkAuthorizedEmailAddresses
Allow sending from any email address in a verified domain

MAILPOET-4601
2022-09-26 11:13:40 +02:00
Rostislav Wolny
45257b7b99 Simplify subscribers last engagement migration by ignoring Woo data
[MAILPOET-4578]
2022-09-26 10:20:32 +02: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
31c2d5aeb8 Split ManageSegmentsCest into two tests
This was the longest test we have. I extracted WooCommerce related tests
into an extra file.
This will improve efficiency of our paralel test execution.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
bfb0871738 Improve stability of ManageSegmentsCest tests
This addresses issues when fillOutput sometimes append the value instead of replacing it.
I have a suspicion that this might be some race condition between React rendering and the webdriver.
I used the same approach as used for the other fields and I clear the field before entering the edited value.
[MAILPOET-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
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
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
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
593157f702 Fix mailpoet-premium activation in nightly tests
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Rostislav Wolny
da8e9bea53 Use older versions of WooCommerce and Woo Blocks in oldest acceptance tests
We still support WP 5.6 but both plugins in version L-2 require at least WP 5.8.
I this commit we set the oldest acceptance tests to use the version compatible with the oldest WP version we support.
[MAILPOET-4662]
2022-09-26 09:24:05 +02:00
Jan Jakes
f4b3f9bf86 Explicitly handle optional workflow ID and version ID, fix missing ID for new workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
02aaba1ded Pass full step map to automation workflow so it can be validated
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
1f37be5ef3 Run full step validation only for active workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
1a51412849 Allow saving unknown step when not changed
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
dbf17204a0 Preserve stap map index to catch invalid values in validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
c9c98b403c Fix possible undefined index access
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
76d2d40198 Add missing exception message
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
8c2377b0f9 Fix trigger tests for new data structures & simplify them
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
d911166637 Use new data structures in someone subscribes trigger & simplify it
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
5920810ac6 Use step args for triggers
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
a7a58ee791 Fix typos and variable name
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
3c651c940b Add convenience by-class getter for payloads (& use it)
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
a35e925479 Add convenience by-class getter for subjects
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
fe3d719a13 Use step run args in existing actions
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
68b5bab9cc Introduce step run args to simplify step run arguments
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
460cbd9e12 Construct and pass subject entries to step runners
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00