Commit Graph

21439 Commits

Author SHA1 Message Date
9b54217049 Rename PreprocessManager class to ProcessManager
As we want to add rendering postprocessing, it's better to use a different name for this class.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
9106d38aee Add text highlighting support for buttons
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
a671a88956 Remove replacing space in image URL
This fix should not be used anymore.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
b6538cd1c6 Set default line-height for the rendered email
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
7fac0e019f Remove line-height CSS styles
Because the line height setting makes the rendered email not look good sometimes.
For now we decided to remove it.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
b71e68d8da Add loading format library styles in email editor
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
901d1a1721 Activate text highlighting in email editor
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
aeabbb05b2 Update circle config 2024-02-18 09:27:48 +01:00
305db25376 Update k6 to latest and improve running tests 2024-02-18 09:27:48 +01:00
19cf611061 Try to fix filling from address 2024-02-18 09:27:48 +01:00
6fe3d1cd09 Update helper 2024-02-18 09:27:48 +01:00
937c885b21 Fix code formatting 2024-02-18 09:27:48 +01:00
cf3c221ebd Add closing tutorial video if prompted 2024-02-18 09:27:48 +01:00
ec3ddbb6cf Include screenshot in the helper 2024-02-18 09:27:48 +01:00
577e7c70e2 Add wait for selector visible in helper 2024-02-18 09:27:48 +01:00
d6eba050e0 Fix code formatting 2024-02-18 09:27:48 +01:00
0c2fabed6c Update tests again 2024-02-18 09:27:48 +01:00
3f95c1f2fb Update tests 2024-02-18 09:27:48 +01:00
42f484742a Finalize performance tests and update helper 2024-02-18 09:27:48 +01:00
cb12c45135 Add new performance test automation welcome email 2024-02-18 09:27:48 +01:00
e1fbb8b996 Add performance test for custom automation 2024-02-18 09:27:48 +01:00
627212f8a9 Save the existing test structure 2024-02-18 09:27:48 +01:00
dab719454a Fix invalid email address causing failed validation on subsequent flush
[MAILPOET-5910]
2024-02-16 12:24:35 -06:00
d1899090bc Create DomDocumentHelper to work with DOMDocument
[MAILPOET-5831]
2024-02-16 14:18:47 +01:00
9ab347080b Create customers to avoid failing tests
[MAILPOET-5909]
2024-02-16 08:29:27 +01:00
13e065fb70 Remove pull request stats
https://mailpoetdev.wordpress.com/2023/10/23/haiku-bi-weekly-meeting-october-10-2022/
2024-02-15 14:38:11 +01:00
3e3b50a037 Fix emoji encoding fallback for MySQL 8.0.28+
As of MySQL 8.0.28, there is no longer charset utf8, which was an alias for utf8mb3.
It is show as utf8mb3 so we need to check for both utf8 for older versions and utf8mb3 to cover newer versions.
See https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8.html
[MAILPOET-5888]
2024-02-15 13:45:35 +01:00
7d6e0c2ad5 Run nightly acceptance and integration latest test on MySQL 8
[MAILPOET-5888]
2024-02-15 13:45:35 +01:00
9cf2eef721 Register send status
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
e9d8610cda Remove unused method
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
31cb9e10c8 Use type property instead of comment
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
35d7dfc150 Use warning instead of error
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
063e87499e Display a notice when opening a sent email
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
05a7f1c9dd Disable send button if the email was sent
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
7a0cad8abf Update post status when email is sent
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
ad6199d915 Update composer.phar
[MAILPOET-5902]
2024-02-14 15:53:39 +01:00
851a9626c9 Enable typography appearance
[MAILPOET-5840]
2024-02-14 14:43:10 +01:00
c35fbdf70a Create transactional emails with order created/completed/cancelled triggers in the UI
[MAILPOET-5725]
2024-02-14 14:36:22 +01:00
a17fc5e963 Identify all triggers with "woocommerce:" key prefix as WooCommerce triggers
[MAILPOET-5725]
2024-02-14 14:36:22 +01:00
d5d20d5219 Send transactional emails with order created/completed/cancelled triggers
[MAILPOET-5725]
2024-02-14 14:36:22 +01:00
738c35891a Simplify getSinglePayloadByClass, remove wrong check
[MAILPOET-5720]
2024-02-14 14:36:22 +01:00
8b40553d0b Do not check subscriber against segment when sending transactional email
[MAILPOET-5720]
2024-02-14 14:36:22 +01:00
d9d3dd41c7 Bump composer/composer from 2.2.22 to 2.2.23 in /mailpoet
Bumps [composer/composer](https://github.com/composer/composer) from 2.2.22 to 2.2.23.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.2.22...2.2.23)

---
updated-dependencies:
- dependency-name: composer/composer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-13 10:01:04 -06:00
33fc16a04f Release 4.43.1 2024-02-13 08:40:51 -06:00
51a14a45d3 Use refreshAll() for updates, refresh subscribers/subscriber custom fields conditionally
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
014b8249bb Replace entityManager->clear with a helper, add cleanup to WP user sync
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
857ed69c61 Update integration test after change in \MailPoet\Segments\WP
In a previous commit, \MailPoet\Segments\WP was refactored to use
Doctrine instead of Paris. Paris would always convert subscriber emails
to lowercase. We don't do this with the Subscriber entity so it was
necessary to update this test after the refactor.

[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
f0434d74e7 Ensure Doctrine entity cache is cleared after changing the database
ImportExportRepository::updateMultiple() changes subscribers by running
MySQL queries directly. Now that \MailPoet\Segments\WP uses Doctrine as
well this was causing a bug caught by our integration tests.

```
MailPoet\Subscribers\ImportExport\Import\ImportTest::testItSynchronizesWpUsers
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'mary'
+'Mary'

/wp-core/wp-content/plugins/mailpoet/tests/integration/Subscribers/ImportExport/Import/ImportTest.php:719
```

https://app.circleci.com/pipelines/github/mailpoet/mailpoet/16386/workflows/c3fa0cf4-a77d-41ab-a5cc-78d4b37d9228/jobs/278066/tests#failed-test-0

This test was failing because the Doctrine entities were not updated
after the import process ran and modified the subscribers directly in
the database. Running EntityManager::clear() after importing the
subscribers, forces Doctrine to query the database again to update the
entities and prevents this bug.

[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
8318246e1e Improve the way WP users are deleted when running the tests
Doing this to be able to write tests that use any username or email as
it was done in the previous commit. Before the users needed to match the
pattern used inside WPTest::insertUser().

[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
6f98634b94 Replace Subscriber and SubscriberSegment models with Doctrine in \MailPoet\Segments\WP
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00