Skip to content

Commit e92cb5e

Browse files
committed
Try to fix E2E test
1 parent 3924486 commit e92cb5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/e2e/specs/test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
createNewPost,
1111
getEditedPostContent,
1212
visitAdminPage,
13+
canvas,
1314
} from '@wordpress/e2e-test-utils';
1415

1516
const page = global.page;
@@ -79,8 +80,8 @@ describe( 'Editor', () => {
7980
it( 'input by Emmet should be expanded on block editor', async () => {
8081
await createNewPost();
8182
await insertBlock( 'Custom HTML' );
82-
await page.waitForSelector( '[data-type="core/html"] .monaco-editor' );
83-
await page.click( '[data-type="core/html"] .monaco-editor' );
83+
await canvas().waitForSelector( '[data-type="core/html"] .monaco-editor' );
84+
await canvas().click( '[data-type="core/html"] .monaco-editor' );
8485
await page.keyboard.type( 'ul.list>li.item*5' );
8586
await page.keyboard.down( 'Tab' );
8687
expect( await getEditedPostContent() ).toMatchSnapshot();

0 commit comments

Comments
 (0)