Commit Graph

3171 Commits

Author SHA1 Message Date
Ján Mikláš
6b8600864a Fix SearchForNotificationCest to wait for emails to load and not name of newsletter which was populated before tests were run 2019-01-03 09:47:11 +01:00
Ján Mikláš
58c1095114 Repopulate DB after reinstalling from scratch, so following tests have same default data 2019-01-03 09:47:11 +01:00
Ján Mikláš
b1e7db1ee0 Destroy Codeception's user session after logout 2019-01-03 09:47:11 +01:00
Ján Mikláš
563e1da7df Unify using $I instead of $this in AcceptanceTester 2019-01-03 09:47:11 +01:00
Ján Mikláš
fe9ad3a03d Fix checking success message in SubscriptionFormEditCest, because it might already be in widget which would result in different success message (but still OK for test) 2019-01-03 09:47:11 +01:00
Ján Mikláš
4ad420492f Fix SubscriptionFormCest when form is longer than visible part of the page and click would be recieved by <body> 2019-01-03 09:47:11 +01:00
Ján Mikláš
88f335eaed Remove unused code and fix typos in SubscribeToMultipleListsCest 2019-01-03 09:47:11 +01:00
Ján Mikláš
4d5bd430ee Fix SaveNewsletterAsDraftCest to check for newsletter which was saved and not the one which was populated before tests were run 2019-01-03 09:45:15 +01:00
Ján Mikláš
c13fbd1343 Add acceptance test ReinstallFromScratch 2019-01-03 09:45:15 +01:00
Rostislav Wolny
28cf751840 Add automatic email type to newsletters factory
[MQ-170]
2019-01-02 11:57:56 +01:00
wxa
0573a7915e Merge pull request #1689 from mailpoet/wp-functions
Encapsulating WP calls
2018-12-27 11:05:08 +03:00
wxa
38c40709a4 Make segment data factory extendable by Premium dynamic segment data dactory [MQ-157] 2018-12-26 10:19:36 +03:00
M. Shull
92f2424d9d Merge pull request #1705 from mailpoet/open-stats-page-test
Add methods for sent newsletters to data factory [MQ-162]
2018-12-20 12:11:12 -05:00
M. Shull
da27680224 Merge pull request #1695 from mailpoet/di-hacking-refactor
Hacking day - DI Refactor [MAILPOET-1689]
2018-12-20 11:13:05 -05:00
wxa
0d5e094481 And methods for sent newsletters to data factory [MQ-162] 2018-12-20 17:43:25 +03:00
Rostislav Wolny
ed29d568d3 Add withConfirmationEmailFrom to settings factory
[MAILPOET-1665]
2018-12-20 10:48:24 +01:00
Pavel Dohnal
52cc6d5604 Create a data factory for settings
[MAILPOET-1665]
2018-12-20 10:46:33 +01:00
M. Shull
a0a5d2b76e Merge pull request #1690 from mailpoet/tests-fixes
Fix acceptance tests that failed locally  [MAILPOET-1694]
2018-12-19 10:42:56 -05:00
M. Shull
fc675c7f1f Merge pull request #1697 from mailpoet/no-empty-subject
Use a default subject if a rendered newsletter subject is empty [MAILPOET-1462]
2018-12-17 14:27:07 -05:00
Ján Mikláš
140d2e98dd Refactor acceptance tests with unified waiting for select2 to load 2018-12-17 18:52:50 +01:00
Ján Mikláš
a0fa3c6a0d Create helper for searching, which handle waiting for element, filling input and clicking button 2018-12-17 17:26:30 +01:00
Ján Mikláš
38aaed77d8 Create helper to load mailhog app and wait for angular to load 2018-12-17 17:25:36 +01:00
Ján Mikláš
eea62cd4f7 Create helper for waiting for list to load 2018-12-17 17:25:02 +01:00
wxa
c2955bdf35 Fix padded ALC images breaking out of width on mobile [MAILPOET-1693] 2018-12-17 18:06:16 +03:00
Rostislav Wolny
f13c340d87 Inject dependencies to hooks directly
[MAILPOET-1689]
2018-12-17 15:29:50 +01:00
Rostislav Wolny
66a05e1b19 Inject Listing Handler and Segments Subscriber Listing using DI
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
Rostislav Wolny
fd4bcee5f5 Inject bulk action controller using DI
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
Rostislav Wolny
de5385ed03 Get rid of static instantiation of JSON API
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
Rostislav Wolny
ece5e9a9d1 Refactor subscription form processing
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
Ján Mikláš
c835feea16 Fix SubscribersListingCest - wait for search input to be visible before filling value 2018-12-15 13:08:47 +01:00
Ján Mikláš
a662329edf Fix SearchForStandardNewsletterCest - wait for search input to be visible before filling value 2018-12-15 13:08:47 +01:00
Ján Mikláš
ed11528868 Fix EnableAndDisableSignupConfirmationCest - remove all emails before running tests 2018-12-15 13:08:47 +01:00
Ján Mikláš
b9ceb2a906 Fix EnableAndDisableSignupConfirmationCest - wait for list of mails to render before checking number of them 2018-12-15 13:08:47 +01:00
Ján Mikláš
c126228352 Unify selecting emails in EnableAndDisableSignupConfirmationCest 2018-12-15 13:08:47 +01:00
Ján Mikláš
f6e9601e04 Fix SubscriberManagementCest - wait for select2 to render and add more specific selector for Save button (was failing randomly) 2018-12-15 13:08:47 +01:00
Ján Mikláš
4260960b59 Fix typos - subsciber => subscriber 2018-12-15 13:08:47 +01:00
Ján Mikláš
090fd092cb Fix SubscriberManagementCest - wait for subscribers to finish loading before assessing 2018-12-15 13:08:47 +01:00
Ján Mikláš
1bc31c0927 Fix ScheduleNewsletterCest - wait for select2 to render before selecting value 2018-12-15 13:08:47 +01:00
Ján Mikláš
64f6e8c88f Fix SaveNotificationAsDraftCest - wait for select2 to render before selecting value 2018-12-15 13:08:47 +01:00
Ján Mikláš
83f1849328 Fix SaveNewsletterAsDraftCest - wait for select2 to render before selecting value 2018-12-15 13:08:47 +01:00
Ján Mikláš
cf9f38cdb4 Fix NewsletterCreationCest - wait for select2 to render before selecting value 2018-12-15 13:08:47 +01:00
Ján Mikláš
f0b65721db Fix EditExistingNewsletterCest - wait for select2 to render before selecting value 2018-12-15 13:08:47 +01:00
Ján Mikláš
5d14bb4240 Fix DuplicatePostNotificationCest - wait for table to finish loading 2018-12-15 13:08:47 +01:00
wxa
a1fa3dcd28 Use a default subject if a rendered newsletter subject is empty [MAILPOET-1462] 2018-12-13 22:13:01 +03:00
Jan Jakeš
f27ecdc079 Always load NPS poll on newsletters page
[MAILPOET-1670]
2018-12-13 15:48:51 +01:00
M. Shull
7135fe512c Merge pull request #1665 from mailpoet/premium-di
Premium Plugin DI [PREMIUM-99]
2018-12-13 08:19:34 -05:00
Jan Jakeš
adf1783cd9 Add test ensuring image renderer understands dimensions both with & without 'px'
[MAILPOET-1680]
2018-12-12 17:34:45 +01:00
Jan Jakeš
970123d0ce Add test for images with 'auto' dimensions
[MAILPOET-1680]
2018-12-12 17:32:41 +01:00
Amine Ben hammou
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
Rostislav Wolny
26472d8b9a Introduce ContainerWrapper
Container wrapper wraps both premium and free containers and adds ability for free plugin to use premium plugin services directly.
[PREMIUM-99]
2018-12-12 08:52:11 +01:00