From e8aaae7c7d9fed852c574abebbf19fea9b111236 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Fri, 16 Jun 2023 11:37:55 -0500 Subject: [PATCH] Set fixedToolbar to false after each top toolbar test to ensure proper cleanup --- .../editor/various/shortcut-focus-toolbar.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,