From b7449725425ce23c57426ebe22b42e3b253a1952 Mon Sep 17 00:00:00 2001 From: igor <igor.markin@vereign.com> Date: Wed, 23 Dec 2020 19:27:43 +0300 Subject: [PATCH] Add htmltext cases --- .../outlook-outlook/macos-macos/README.md | 6 ++-- .../outlook-outlook/windows-windows/README.md | 32 +++++++++---------- __tests__/htmltext-outlook-outlook.test.ts | 23 +------------ 3 files changed, 20 insertions(+), 41 deletions(-) diff --git a/__tests__/files/outlook-outlook/macos-macos/README.md b/__tests__/files/outlook-outlook/macos-macos/README.md index 8bc7a08..eab5e63 100644 --- a/__tests__/files/outlook-outlook/macos-macos/README.md +++ b/__tests__/files/outlook-outlook/macos-macos/README.md @@ -4,11 +4,11 @@ | 02 | Simple text | ok | ok | ok | | 03 | Embedded image | fail | ok | fail | | 04 | Embedded image with text | fail | ok | fail | -| 05 | Complex text on multiple lines with some text bold, italic, lists, no attachments | fail | ok | - | +| 05 | Complex text on multiple lines with some text bold, italic, lists, no attachments | fail | ok | ok | | 06 | Multiple MIME attachments and text | ok | ok | ok | | 07 | Multiple Drive attachments and text | ok | ok | ok | -| 08 | Complex email with formatted text, embedded images, MIME and GDrive attachments | fail | ok | - | -| 09 | 2 replies with test case 01 | fail | ok | - | +| 08 | Complex email with formatted text, embedded images, MIME and GDrive attachments | fail | ok | fail | +| 09 | 2 replies with test case 01 | fail | ok | ok | | 10 | 2 replies with test case 02 | - | - | - | | 11 | 2 replies with test case 03 | - | - | - | | 12 | 2 replies with test case 04 | - | - | - | diff --git a/__tests__/files/outlook-outlook/windows-windows/README.md b/__tests__/files/outlook-outlook/windows-windows/README.md index 88fc98c..445dad3 100644 --- a/__tests__/files/outlook-outlook/windows-windows/README.md +++ b/__tests__/files/outlook-outlook/windows-windows/README.md @@ -1,21 +1,21 @@ | Test Number | Description | HTML validation | Plain validation | HTML text validation | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------- | ---------------- | -------------------- | -| 01 | Empty body | ok | ok | - | -| 02 | Simple text | ok | ok | - | -| 03 | Embedded image | ok | ok | - | -| 04 | Embedded image with text | ok | ok | - | -| 05 | Complex text on multiple lines with some text bold, italic, lists, no attachments | ok | ok | - | -| 06 | Multiple MIME attachments and text | ok | ok | - | -| 07 | Multiple Drive attachments and text | ok | ok | - | -| 08 | Complex email with formatted text, embedded images, MIME and GDrive attachments | ok | ok | - | -| 09 | 2 replies with test case 01 | ok | fail | - | -| 10 | 2 replies with test case 02 | ok | fail | - | -| 11 | 2 replies with test case 03 | fail | fail | - | -| 12 | 2 replies with test case 04 | fail | fail | - | -| 13 | 2 replies with test case 05 | fail | fail | - | -| 14 | 2 replies with test case 06 | ok | fail | - | -| 15 | 2 replies with test case 07 | ok | fail | - | -| 16 | 2 replies with test case 08 | fail | fail | - | +| 01 | Empty body | ok | ok | ok | +| 02 | Simple text | ok | ok | ok | +| 03 | Embedded image | ok | ok | ok | +| 04 | Embedded image with text | ok | ok | ok | +| 05 | Complex text on multiple lines with some text bold, italic, lists, no attachments | ok | ok | ok | +| 06 | Multiple MIME attachments and text | ok | ok | ok | +| 07 | Multiple Drive attachments and text | ok | ok | ok | +| 08 | Complex email with formatted text, embedded images, MIME and GDrive attachments | ok | ok | ok | +| 09 | 2 replies with test case 01 | ok | fail | ok | +| 10 | 2 replies with test case 02 | ok | fail | ok | +| 11 | 2 replies with test case 03 | fail | fail | fail | +| 12 | 2 replies with test case 04 | fail | fail | fail | +| 13 | 2 replies with test case 05 | fail | fail | fail | +| 14 | 2 replies with test case 06 | ok | fail | ok | +| 15 | 2 replies with test case 07 | ok | fail | ok | +| 16 | 2 replies with test case 08 | fail | fail | fail | | 17 | Multiple forwarded emails using cases 01-08:<br><br>E.g. <br>- User A sends "case 01" to User B<br>- User B forwards "case 02" to User A<br>- User A forwards "case 03" to User B<br>...<br>- User B forwards "case 08" to User A<br>- User A completes circle by forwarding "case 01" to User B | - | - | - | ## Failing cases diff --git a/__tests__/htmltext-outlook-outlook.test.ts b/__tests__/htmltext-outlook-outlook.test.ts index f106ec1..55209d1 100644 --- a/__tests__/htmltext-outlook-outlook.test.ts +++ b/__tests__/htmltext-outlook-outlook.test.ts @@ -13,28 +13,7 @@ describe("[Pseudo PLAIN] Outlook-Outlook normalization", () => { EMAIL_VENDORS.OUTLOOK ); - // ["01"] - is a filter. Pass here names of directories with test cases you want to check describe("Chrome-Chrome", describeFunction("chrome-chrome")); describe("MacOS-MacOS", describeFunction("macos-macos", null)); - describe( - "Windows-Windows", - describeFunction("windows-windows", [ - "06", // mismatch of sent and received emls. Passing though ) - "08", // mismatch of sent and received emls. Passing though ) - ]) - ); - describe( - "Windows-MacOS", - describeFunction("windows-macos", [ - "06", // mismatch of sent and received emls. Passing though ) - "08", // mismatch of sent and received emls. Passing though ) - ]) - ); - describe( - "Windows-Chrome", - describeFunction("windows-chrome", [ - "06", // mismatch of sent and received emls. Passing though ) - "08", // mismatch of sent and received emls. Passing though ) - ]) - ); + describe("Windows-Windows", describeFunction("windows-windows")); }); -- GitLab