Commit Graph

3543 Commits

Author SHA1 Message Date
Rostislav Wolny
3f434aae76 Add acceptance tests for blocking trashing active segments
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
fc66381da2 Remove client side checks for trashing lists
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
271c0a0ec6 Block trashing of a active used single list on API
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
a264951904 Skip used segments when bulk trashing segments
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
b17236b88c Fix typos in Segments API test
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
63a3c9b785 Add test for bulk trashing in segments repository
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
f066bc8fdd Disallow trashing single dynamic segment with active email
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Jan Lysý
9ffc3372e6 Add test on count of subscribers by ids
[MAILPOET-3425]
2021-03-29 12:10:05 +02:00
wxa
dd6aff01db Fix duplicate automatic email for same product
[MAILPOET-3254]

It was happening when a second order was placed which contained the same product and some additional product.
2021-03-29 10:32:37 +02:00
Pavel Dohnal
b89b018641 Fix align saving in the form editor
[MAILPOET-3512]
2021-03-29 09:45:28 +02:00
Veljko
63a43edc94 Fix flaky counter in test
[MAILPOET-3513]
2021-03-24 16:56:34 +01:00
Pavel Dohnal
95825793c0 Use doctrine for populator query
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
Pavel Dohnal
3ae3102f9c Leave old task paused when activating newsletter
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
Pavel Dohnal
2dcf9a8a8f Pause all scheduled tasks when pausing newsletter
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
wxa
791c3f7a53 Remove unused currentFilter argument
[MAILPOET-3499]
2021-03-24 09:58:25 +01:00
wxa
872ff71f17 Fix first and last name sync on WooCommerce checkout
[MAILPOET-3499]
2021-03-24 09:58:25 +01:00
Pavel Dohnal
ce48153b12 Fix code using the combined segments
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
5b45bdac1e Enable joining segments using and/or
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
ceae8e17aa Make parameters unique
[MAILPOET-3212]

We need to be able to connect the same segments:
users who are editor or administrator
2021-03-23 15:58:34 +01:00
Pavel Dohnal
7a98abdead Connect dynamic segments filters using UNION select
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
wxa
eadb02ae5c Add tests for WP style shortcodes and arguments
[MAILPOET-3465]
2021-03-22 12:19:59 +01:00
Pavel Dohnal
7e0c718683 Add wait in the test to make sure users are synchronised
[MAILPOET-3496]
2021-03-19 13:15:09 +01:00
Jan Lysý
6b55cf08e0 Add acceptance test for count of subscribers
[MAILPOET-3219]
2021-03-17 10:42:16 +01:00
Rostislav Wolny
a44647d4f3 Add acceptance test for segments bulk actions
[MAILPOET-3351]
2021-03-17 09:52:34 +01:00
Pavel Dohnal
98ee40a203 Use doctrine entity in newsletter task test
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Pavel Dohnal
82bf183a6c Use doctrine entity in posts test
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Pavel Dohnal
caad80a09c Use doctrine entity to truncate table in tests
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Jan Lysý
6f5f3bc6c5 Remove usage of old model from SubscriptionTest
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Jan Lysý
7968db94ff Update integration tests for usage SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Rodrigo Primo
a49bf8118a Attempt to fix a flaky integration test
This commit attempts to fix the integration test
SubscriberListingRepositoryTest::testReturnsCorrectCountForSubscribersInDynamicSegment()
that was failing sometimes on CircleCI. My theory is that the test was
failing because we were using created_at to order the subscribers in the
query that is used to get subscribers in a given dynamic segment, but
there is a chance the the value of this field is the same for all the
three subscribers that are created in this test. As this could lead to a
situation where the order of the returned subscribers changes, causing
the test to fail. To work around that, I changed the test to order the
results by ID. This way we should always get the subscribers in the same
order.

[MAILPOET-3451]
2021-03-15 14:33:59 +01:00
Pavel Dohnal
deb4d7833d Fix text align
[MAILPOET-3473]
2021-03-15 09:54:46 +01:00
Jan Lysý
9434ef2375 Add tests for methods moved from endpoint to controller
[MAILPOET-3034]
2021-03-11 11:46:16 +01:00
Jan Lysý
cb0d3c70ad Use Doctrine for update success message in Settings
[MAILPOET-3034]
2021-03-11 11:46:16 +01:00
Jan Lysý
bf63e5b38e Include WP multisite function in IntegrationTester
[MAILPOET-3478]
2021-03-11 11:45:54 +01:00
Rostislav Wolny
2566ebb13c Disable WordPress core autoupdate in acceptance tests
The auto-update process collides with test bootstrap resulting in random errors.
[MAILPOET-3475]
2021-03-11 07:11:37 +01:00
Rostislav Wolny
4a6e85bb04 Remove useless backup of wp-config
[MAILPOET-3475]
2021-03-11 07:11:37 +01:00
wxa
67824f9eb1 Set task status to invalid instead of deleting
[MAILPOET-3359]
2021-03-10 18:24:21 +01:00
wxa
3f7b809bd4 Delete tasks without queues when fetching sending tasks
[MAILPOET-3379]
2021-03-10 18:24:21 +01:00
Rostislav Wolny
aff4c9d5b7 Fix dynamic segments filtering in subscriber export
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
1b74c3e195 Improve email action filter api data validation
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
6bc557ecb0 Refactor dynamic segments bulk actions endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
2db223daf7 Refactor dynamic segments delete endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
e1eea57d32 Refactor dynamic segments trash and restore
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
51f8b30355 Remove unused old dynamic segments services
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
f5df2601ef Refactor segment test data factories to work with Doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
9fdebdb4d7 Refactor api for creating/updating dynamic segments
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
64b078c7be Add dynamic segments filter data mapper
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
bd63ae508f Refactor dynamic segments get endpoint to doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00