Skip to content

Commit

Permalink
Fix flaky 'Switch to Draft' action in Preview e2e tests (#55772)
Browse files Browse the repository at this point in the history
# Conflicts:
#	test/e2e/specs/editor/various/preview.spec.js
  • Loading branch information
Mamaduka authored and mikachan committed Nov 22, 2023
1 parent d51b7c6 commit 0a56972
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/specs/editor/various/preview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ test.describe( 'Preview', () => {
const editorPage = page;

// Type Lorem in the title field.
await editor.canvas.type( 'role=textbox[name="Add title"i]', 'Lorem' );
await editor.canvas
.locator( 'role=textbox[name="Add title"i]' )
.type( 'Lorem' );
await editor.openDocumentSettingsSidebar();

// Open the preview page.
const previewPage = await editor.openPreviewPage( editorPage );
Expand Down

0 comments on commit 0a56972

Please sign in to comment.