diff --git a/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs b/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs index 45da439a5..cf10ba377 100644 --- a/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs +++ b/packages/lexical-playground/__tests__/e2e/Tables.spec.mjs @@ -2620,6 +2620,55 @@ test.describe.parallel('Tables', () => { ); }); + test('Delete columns forward at end of table', async ({ + page, + isPlainText, + isCollab, + }) => { + await initialize({isCollab, page}); + test.skip(isPlainText); + if (IS_COLLAB) { + // The contextual menu positioning needs fixing (it's hardcoded to show on the right side) + page.setViewportSize({height: 1000, width: 3000}); + } + + await focusEditor(page); + + await insertTable(page, 2, 4); + + await selectCellsFromTableCords( + page, + {x: 1, y: 1}, + {x: 3, y: 1}, + false, + false, + ); + + await deleteTableColumns(page); + + await assertHTML( + page, + html` +
+ |
+
---|
+ |
+