Commit Graph

18419 Commits

Author SHA1 Message Date
Sam Najian
be41b1e896 Update closeDialog method to use the new aria-label
In new version, arial-label has changed from Close dialog
to Close

[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Veljko
9c99fe733b Refactor k6 to use chai.js
[MAILPOET-5156
2023-03-30 14:43:31 +02:00
Veljko
7b90dff4b6 First attempt to try and make checks failing 2023-03-30 14:43:31 +02:00
David Remer
5c2b150d63 Hide WooCommerce integration until transactional emails are ready
[MAILPOET-4935]
2023-03-30 13:17:30 +02:00
David Remer
a3ebd0695b Introduce Order to Segment transformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
9738bd3ecd Introduce general step error
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
a74c5993a0 Prevent error when no field is specified
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8ba694e30d Use plural for subject transformers in test
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
328b5b1475 Remove private getSubjectKeysForSingleKey method
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e2777aebc3 Use plural for array of subject transformers
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
19b5abc171 Use array_keys $all to get the keys
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d6760cb113 Use array
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
b2bd4e7721 Define type of return value
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
0d12c05fb9 Improve readability
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
ce6c9dfcdb Remove unnecessary check
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
9d9b3f58c4 Use WooCommerce helper to fetch order
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8cf48d2707 Simplify SubjectTransformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
68f09b6bd1 Prevent infinite loop when a subject from the trigger is missing
Given the trigger provides two subjects but only one subject was given via parameter and no
transformer was able to generate the second from the first, this method runs into an
infinite loop. This commit prevents this infinite loop.

[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
b5a846327a Remove SubjectTransformerHandler from StepHandler
All subjects are created and persisted during AutomationRun creation. Therefore, the required
subject must exist when searching for it in the StepHandler. This commit reverses the last
changes and updates the test.

[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d365be2334 Persist all possible subject on run creation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
c968b03ca7 Provide all possible subjects for a trigger to the UI
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
6fa85ef879 Test order to subscriber subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
301a10b210 Move TestAction to Stubs
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
2bba70125c Add order status change statistic to analytics
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
f1f667c355 Add order status change trigger frontend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d0659f638c Add order to subscriber transformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e140dc6d4e Add WooCommerce integration and order status trigger backend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e081c554aa Add method to retrieve order statuses
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
5328213d85 Introduce subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
Veljko
06874645c7 Add nightly testing and update CircleCI and RoboFile
[MAILPOET-4954
2023-03-30 11:03:28 +02:00
Veljko
a24c5f5869 Exclude test from scenarios
[MAILPOET-4954
2023-03-30 11:03:28 +02:00
Veljko
568918f1fc Include the test in scenarios
[MAILPOET-4954]
2023-03-30 11:03:28 +02:00
Veljko
c7e01e0cb1 Add new k6 test newsletter statistics
[MAILPOET-4954]
2023-03-30 11:03:28 +02:00
Veljko
5297333d6a Optimize tests and improve existing
[MAILPOET-4958]
2023-03-30 11:03:28 +02:00
Brezo Cordero
eaa2085fba Use replace instead of push
[MAILPOET-5140]
2023-03-30 10:09:04 +02:00
Brezo Cordero
bc43aaaeb7 Remove MSS pitch if key already active
[MAILPOET-5140]
2023-03-30 10:09:04 +02:00
Rodrigo Primo
7570c7ecfe Fix PNPM permission error when setting up the dev env
This commit fixes the following error when running ./do setup to configure the dev env on a new Linux machine:

```
[ExecStack] Running pnpm install --frozen-lockfile --prefer-offline
Internal Error: EACCES: permission denied, mkdir '/.cache'
Error: EACCES: permission denied, mkdir '/.cache'
```

It sets the $XDG_DATA_HOME variable to /tmp/.cache in docker-compose.yml. This will affect other programs that rely on $XDG_DATA_HOME, but it is probably harmless. I was not able to find an env variable that is specific to PNPM, and that would affect only the location of its cache directory (https://pnpm.io/next/npmrc#cache-dir).

[MAILPOET-5177]
2023-03-30 08:25:29 +02:00
Sam Najian
d0c92627e9 Update the host key per GH instruction
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

[MAILPOET-5173]
2023-03-29 14:32:36 +03:00
Rodrigo Primo
8e0211913a Add basic integration test for the new single order value WC segment
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
Rodrigo Primo
68d69cb8bb Add basic acceptance tests for the new single order value WC segment
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
Rodrigo Primo
b1a940aded Add basic unit test for FilterDataMapper when using WooCommerceSingleOrderValue
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
Rodrigo Primo
b963d8b988 Add a new WooCommerce segment based on the value of the orders
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
David Remer
47ca0d926b Exempt <hr> from being stripped when display type is full
[MAILPOET-5114]
2023-03-28 15:20:10 +02:00
alex-mailpoet
3ed92e2de9 Release 4.10.0 2023-03-28 12:09:26 +03:00
Rodrigo Primo
ae28e62b1a Add documentation for the unsubscribe() MP API method
[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
Rodrigo Primo
45f59770fc Add reason for unsubscribing to the admin when using MP API
This commit adds the string about unsubscribing using the MP API to the
subscribers page in the admin. Without this we were showing a generic
message "Unsubscribed for an unknonw reason".

[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
Rodrigo Primo
c507229dd2 Add unsubscribe API method
It can be used by calling:

```
$mailpoet_api = \MailPoet\API\API::MP('v1');
$mailpoet_api->unsubscribe($subscriberId);
```

[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
Rodrigo Primo
d37b961c2b Use getServiceWithOverrides() to create an instance of Subscribers
By using this helper method, we don't need to change the code that
instantiate Subscribers whenever the class signature changes as it is
going to happen in a subsequent commit.

[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
alex-mailpoet
a90a1462f4 Fix translations after conflict resolving
[MAILPOET-4397]
2023-03-27 17:24:03 +02:00
John Oleksowicz
17c206ef8f Ensure confirmation displays for pausing
MAILPOET-4397
2023-03-27 17:24:03 +02:00