Skip to content

Commit 8d8e9df

Browse files
committed
use nth selector
1 parent ea341ab commit 8d8e9df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/specs/editor/blocks/list.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ test.describe( 'List', () => {
221221
await page.keyboard.press( 'Enter' );
222222
await page.keyboard.type( 'two' );
223223
await page.keyboard.down( 'Shift' );
224-
await page.click( '[data-type="core/paragraph"]:first-of-type' );
224+
await page.click( '[data-type="core/paragraph"] >> nth=0' );
225225
await page.keyboard.up( 'Shift' );
226226
await editor.transformBlockTo( 'core/list' );
227227

@@ -262,7 +262,7 @@ test.describe( 'List', () => {
262262
await page.keyboard.press( 'Enter' );
263263
await page.keyboard.type( 'two' );
264264
await page.keyboard.down( 'Shift' );
265-
await page.click( '[data-type="core/paragraph"]:first-of-type' );
265+
await page.click( '[data-type="core/paragraph"] >> nth=0' );
266266
await page.keyboard.up( 'Shift' );
267267
await editor.transformBlockTo( 'core/list' );
268268

0 commit comments

Comments
 (0)