Skip to content

Commit e83ff1e

Browse files
jeryjsethrubenstein
authored andcommitted
Set fixedToolbar to false after each top toolbar test to ensure proper cleanup (WordPress#51600)
1 parent 145902a commit e83ff1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/e2e/specs/editor/various/shortcut-focus-toolbar.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ test.describe( 'Focus toolbar shortcut (alt + F10)', () => {
8282
await editor.setIsFixedToolbar( true );
8383
} );
8484

85+
test.afterEach( async ( { editor } ) => {
86+
// Ensure the fixed toolbar option is off
87+
await editor.setIsFixedToolbar( false );
88+
} );
89+
8590
test( 'Focuses the correct toolbar in edit mode', async ( {
8691
editor,
8792
page,
@@ -161,11 +166,6 @@ test.describe( 'Focus toolbar shortcut (alt + F10)', () => {
161166
},
162167
} );
163168

164-
test.beforeEach( async ( { editor } ) => {
165-
// Ensure the fixed toolbar option is off
166-
await editor.setIsFixedToolbar( false );
167-
} );
168-
169169
test( 'Focuses the correct toolbar in edit mode', async ( {
170170
editor,
171171
page,

0 commit comments

Comments
 (0)