Commit Graph

15684 Commits

Author SHA1 Message Date
Jan Lysý
15211fbd5e Fix deleting Products block in the newsletter editor
[MAILPOET-3727]
2021-08-16 12:37:50 +02:00
Jan Lysý
41a3ac0268 Remove mso condition for include fonts for newsletters editor
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Jan Lysý
f9a093c958 Add testing rendering button in post process
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Jan Lysý
f6a881da98 Remove redundant important from style
We test stripping redundant from rendered emails. I removed redundant important option.
It is based on this article:
https://www.litmus.com/blog/a-guide-to-bulletproof-buttons-in-email-design/

[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Jan Lysý
811b25673e Update newsletter ButtonTest.php
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Jan Lysý
dfa0d03a67 Replace incorrect opening mso if in postProcessTemplate
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Jan Lysý
75690d7a45 Add non mso condition around button
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Jan Lysý
2165baa5ee Fix non mso condition in Menu
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Rodrigo Primo
7ffb85d1cf Update jsdom to version 16.7.0
This commits updates jsdom to version 16.7.0. It also updates
tests/javascript_newsletter_editor/mochaTestHelper.js to use the new
jsdom API as the old API was removed.

[MAILPOET-3678]
2021-08-16 11:00:54 +02:00
Brezo Cordero
44932d27c9 Allow import subscribers with empty IP address
Allow import subscribers with empty confirmed_ip or subscribed_ip when one of the columns is selected in the last step of the import.
Don't allow importing invalid IP addresses - still import the subscriber but remove the invalid IP address.

[MAILPOET-3665]
2021-08-16 10:37:31 +02:00
Jan Lysý
5e1f523c96 Improve code according the review
[MAILPOET-3708]
2021-08-16 10:25:37 +02:00
Jan Lysý
1a2c2746ca Add the subscribers recalculate component on the subscribers listing
[MAILPOET-3708]
2021-08-16 10:25:37 +02:00
Jan Lysý
74dc9fce53 Remove the character "~" from counts
[MAILPOET-3708]
2021-08-16 10:25:37 +02:00
Brezo Cordero
4120839102 Remove unnecessary casting to string on getNamesOfFormsForSegments
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Brezo Cordero
b2857cbf40 Refactor code that checks for list deletion with form
Move segment deletion to new function doTrash to avoid calling methods twice on individual segment deletion. Refactor acceptance test.

[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Brezo Cordero
711830d44d Add acceptance test for list with form deletion
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Brezo Cordero
d9186e4230 Prevent deleting a list if attached to a form
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Jan Lysý
6dc0c62640 Fix getting NewsletterExporter instance in PersonalDataExporters
[MAILPOET-3702]
2021-08-11 15:18:58 +02:00
Jan Lysý
7783237203 Use entities instead of old models in link shortcode filter
[MAILPOET-3464]
2021-08-11 14:35:48 +02:00
Jan Lysý
d9f4a3f1d4 Add filter for displaying form on supported post types
[MAILPOET-3639]
2021-08-11 14:26:06 +02:00
Jan Lysý
e468663d15 Add job_listing into supported post types for forms
[MAILPOET-3639]
2021-08-11 14:26:06 +02:00
Rostislav Wolny
adcbcc9982 Add tests for existing subscribers subscribing on checkout page
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
35058bca63 Add unsubscribes tracking for WooCommerce checkout
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
774142dd01 Add test for subscriptions via Woo on my-account page
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
21c712c930 Fix issues in woocommerce_registration_errors callback
* After this change we will process only registrations without any errors.
* The filter expect that it returns $errors, but the callback was not returning anything. This was under some circumstances causing 500 error.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
61e61d4612 Enable registration on my-account page in acceptance tests
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
b7cdb71f18 Delete redundant WooCommerce customer lists tests
Same functionality is tested in newly added subscription tests
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
c110851a82 Add acceptance tests for registered customer subscriptions on checkout
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
3849b7fa33 Add acceptance tests for guest customers subscriptions on checkout
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
7b773e2acb Fix createOrder in tests to work with disabled opt-in checkbox
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
3cedca311d Unsubscribe on checkout only when opt-in is checkbox is present
This change unifies behaviour with registration page opt-in checkbox.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
47ef8944f8 Do not set status in sync of registered customer
Subscriber status is already handled when the user is added to
WordPress Users list.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
12c9019939 Mark customers without optin as unsubscribed
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
b46335a562 Fix filter for rendering WooCommerce checkou optin
Without the return argument the input is immediately rendered
and the function returns null. The filter than received null
instead of HTML string and the input was already rendered before
the filter was called.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rodrigo Primo
8513a4d986 Fix checkMissingTypehint PHPStan errors
This commit removes the checkMissingTypehints flag
from PHPStan configuration files and fixes all associated errors in our
code base.

[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rodrigo Primo
e59992cc16 Fix checkGenericClassInNonGenericObjectType PHPStan errors
This commit removes the checkGenericClassInNonGenericObjectType flag
from PHPStan configuration files and fixes all associated errors in our
code base.

[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rodrigo Primo
f0dc0b3556 Stop excluding the PHPStan checkMissingTypehints error
This check doesn't produce any errors so we don't need to exclude it
from our checks. Note that this only removes the exclusion of this error
from phpstan.neon. The same error check is kept in phpstan-tests.neon as
there are some change that we need to make to two tests before being
able to update this file as well.

[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rodrigo Primo
30b4b3e073 Stop excluding the PHPStan checkMissingVarTagTypehint error
This check doesn't produce any errors so we don't need to exclude it
from our checks.

[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rostislav Wolny
c182e953ef Prevent trashing customer users when WP segment is inactive
[MAILPOET-3695]
2021-08-09 12:36:29 +02:00
Brezo Cordero
1909950353 Remove the poll on plugin deactivation
Remove the poll asking for deactivation reasons as we are no longer using the data.

[MAILPOET-3705]
2021-08-09 11:33:14 +02:00
Jan Lysý
19fad073d0 Add cleanup subscribers counts cache
[MAILPOET-3714]
2021-08-09 10:38:37 +02:00
Jan Lysý
2deaeb284b Rename method in AcceptanceTester
[MAILPOET-3723]
2021-08-04 10:13:57 +02:00
Jan Lysý
d1edb2fa32 Skip StatPage acceptance test when Premium is active
[MAILPOET-3723]
2021-08-04 10:13:57 +02:00
Jan Lysý
ac2346a181 Copy mailpoet-premium instead of softlink
[MAILPOET-3586]
2021-08-02 08:37:32 +02:00
Jan Lysý
853e3c4f0e Remove CleanupPremiumPluginExtension
[MAILPOET-3586]
2021-08-02 08:37:32 +02:00
Jan Lysý
9960cd142e Bump "Tested up to" version to 5.8
[MAILPOET-3711]
2021-07-28 09:29:53 +02:00
Jan Lysý
50092320d5 Release 3.65.1 2021-07-20 13:20:33 +02:00
Pavel Dohnal
56e18c151d Encode value before printing it
[MAILPOET-3698]
2021-07-19 13:38:39 +02:00
Pavel Dohnal
3941fccefa Update MSS testing address
[MAILPOET-3681]
2021-07-19 13:13:19 +02:00
Rostislav Wolny
f4a87bec37 Fix sign up button in MSS pitch on send page
[MAILPOET-3704]
2021-07-14 14:54:56 +02:00