Skip to content

Commit 36f3cad

Browse files
test: adjust test targeting to wait for input (#14614)
Adjust the lexical test to wait for nested inputs to be visible before rapidly adding another row.
1 parent 62508ca commit 36f3cad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/lexical/collections/Lexical/e2e/blocks/e2e.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,12 +1068,16 @@ describe('lexicalBlocks', () => {
10681068

10691069
await conditionalArrayBlock.locator('.btn__label:has-text("Add Columns2")').first().click()
10701070
await expect(
1071-
conditionalArrayBlock.locator('.array-field__draggable-rows #columns2-row-0'),
1071+
conditionalArrayBlock.locator(
1072+
'.array-field__draggable-rows #columns2-row-0 input[type="text"]',
1073+
),
10721074
).toBeVisible()
10731075

10741076
await conditionalArrayBlock.locator('.btn__label:has-text("Add Columns2")').first().click()
10751077
await expect(
1076-
conditionalArrayBlock.locator('.array-field__draggable-rows #columns2-row-1'),
1078+
conditionalArrayBlock.locator(
1079+
'.array-field__draggable-rows #columns2-row-1 input[type="text"]',
1080+
),
10771081
).toBeVisible()
10781082

10791083
await conditionalArrayBlock

0 commit comments

Comments
 (0)