From 0c9651a5f33d2fb2f2a416ee885e611caf6a2d4d Mon Sep 17 00:00:00 2001 From: Bart Kalisz Date: Tue, 3 Oct 2023 12:50:53 +0200 Subject: [PATCH] Fix writing flow spec --- test/e2e/specs/editor/various/writing-flow.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/various/writing-flow.spec.js b/test/e2e/specs/editor/various/writing-flow.spec.js index 0ea031d129c5c..98bb00a596f03 100644 --- a/test/e2e/specs/editor/various/writing-flow.spec.js +++ b/test/e2e/specs/editor/various/writing-flow.spec.js @@ -10,8 +10,11 @@ test.use( { } ); test.describe( 'Writing Flow (@firefox, @webkit)', () => { - test.beforeEach( async ( { admin } ) => { + test.beforeEach( async ( { admin, editor } ) => { await admin.createNewPost(); + await expect( + editor.canvas.getByRole( 'textbox', { name: 'Add title' } ) + ).toBeFocused(); } ); test.afterAll( async ( { requestUtils } ) => {