Skip to content

Commit f2a6c79

Browse files
committed
test(playwright): focus Tiptap table cell before typing
1 parent fdd2c79 commit f2a6c79

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

playwright/tests/ZA-editor-rich-features.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ test.describe('Test Tiptap Editor Rich Text, Table, Code Block, and Preview Feat
8787

8888
// Fill cell text and check focus actions
8989
const cellA1 = tableElement.locator('td').first()
90-
await cellA1.click()
91-
await cellA1.pressSequentially('CellA1')
90+
await cellA1.locator('p').click()
91+
await page.keyboard.type('CellA1')
92+
await expect(cellA1).toHaveText('CellA1')
9293

9394
// Focused in a cell: verify the Markdown-safe contextual toolbar appears
9495
const addRowBtn = page.getByTestId('table-add-row')

0 commit comments

Comments
 (0)