diff --git a/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs b/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs index dee1a4637e1..424205955fe 100644 --- a/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs +++ b/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs @@ -966,145 +966,149 @@ test.describe.parallel('Tables', () => { ); }); - test(`Can copy + paste (internal) using Table selection`, async ({ - page, - isPlainText, - isCollab, - }) => { - await initialize({isCollab, page}); - test.skip(isPlainText); + test( + `Can copy + paste (internal) using Table selection`, + { + tag: '@flaky', + }, + async ({page, isPlainText, isCollab}) => { + await initialize({isCollab, page}); + test.skip(isPlainText); - await focusEditor(page); - await insertTable(page, 2, 3); + await focusEditor(page); + await insertTable(page, 2, 3); - await fillTablePartiallyWithText(page); - await selectCellsFromTableCords( - page, - {x: 0, y: 0}, - {x: 1, y: 1}, - true, - false, - ); + await fillTablePartiallyWithText(page); + await selectCellsFromTableCords( + page, + {x: 0, y: 0}, + {x: 1, y: 1}, + true, + false, + ); - const clipboard = await copyToClipboard(page); + const clipboard = await copyToClipboard(page); - // For some reason you need to click the paragraph twice for this to pass - // on Collab Firefox. - await click(page, 'div.ContentEditable__root > p:first-of-type'); - await click(page, 'div.ContentEditable__root > p:first-of-type'); + // For some reason you need to click the paragraph twice for this to pass + // on Collab Firefox. + await click(page, 'div.ContentEditable__root > p:first-of-type'); + await click(page, 'div.ContentEditable__root > p:first-of-type'); - await pasteFromClipboard(page, clipboard); + await pasteFromClipboard(page, clipboard); - // Check that the character styles are applied. - await assertHTML( - page, - html` -
- a - |
-
- bb - |
-
---|---|
- d - |
-
- e - |
-
- a - |
-
- bb - |
-
- cc - |
-
---|---|---|
- d - |
-
- e - |
-
- f - |
-
+ a + |
+
+ bb + |
+
---|---|
+ d + |
+
+ e + |
+
+ a + |
+
+ bb + |
+
+ cc + |
+
---|---|---|
+ d + |
+
+ e + |
+
+ f + |
+
- |
-
- |
-
- cc - |
-
---|---|---|
- |
-
- |
-
- f - |
-
+ |
+
+ |
+
+ cc + |
+
---|---|---|
+ |
+
+ |
+
+ f + |
+