diff --git a/test/e2e/specs/editor/various/shortcut-focus-toolbar.spec.js b/test/e2e/specs/editor/various/shortcut-focus-toolbar.spec.js index 9a97d1a00310ac..05105123546289 100644 --- a/test/e2e/specs/editor/various/shortcut-focus-toolbar.spec.js +++ b/test/e2e/specs/editor/various/shortcut-focus-toolbar.spec.js @@ -82,6 +82,11 @@ test.describe( 'Focus toolbar shortcut (alt + F10)', () => { await editor.setIsFixedToolbar( true ); } ); + test.afterEach( async ( { editor } ) => { + // Ensure the fixed toolbar option is off + await editor.setIsFixedToolbar( false ); + } ); + test( 'Focuses the correct toolbar in edit mode', async ( { editor, page, @@ -161,11 +166,6 @@ test.describe( 'Focus toolbar shortcut (alt + F10)', () => { }, } ); - test.beforeEach( async ( { editor } ) => { - // Ensure the fixed toolbar option is off - await editor.setIsFixedToolbar( false ); - } ); - test( 'Focuses the correct toolbar in edit mode', async ( { editor, page,