From 64d61f3b0d9f89f8a5d9a92cdbd06c96cb3c8cfd Mon Sep 17 00:00:00 2001 From: Sahejkm <163521239+Sahejkm@users.noreply.github.com> Date: Mon, 13 May 2024 21:45:13 +0800 Subject: [PATCH] [Lexical][Table Formatting Copy Paste] Move test from e2e to unit as followup on #5855 (#6093) --- .../__tests__/e2e/CodeBlock.spec.mjs | 75 +------------------ .../__tests__/unit/LexicalTableNode.test.ts | 18 +++++ 2 files changed, 19 insertions(+), 74 deletions(-) diff --git a/packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs b/packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs index 4ec9ee67b..0026e7131 100644 --- a/packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs +++ b/packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs @@ -980,75 +980,7 @@ test.describe('CodeBlock', () => { `; - const EXPECTED_HTML_GOOGLE_SPREADSHEET = html` -
- - - Surface - - - |
-
- - - MWP_WORK_LS_COMPOSER - - - |
-
- - - 77349 - - - |
-
- - Lexical - - |
-
- - - XDS_RICH_TEXT_AREA - - - |
-
- - sdvd - - sdfvsfs - - - |
-
1
2
`,
},
- {
- expectedHTML: EXPECTED_HTML_GOOGLE_SPREADSHEET,
- name: 'Google Spreadsheet',
- pastedHTML: `Hello there | General Kenobi! |
Lexical is nice | ${emptyCell}
Surface | MWP_WORK_LS_COMPOSER | 77349 |
Lexical | XDS_RICH_TEXT_AREA | sdvd sdfvsfs |