Skip to content

Commit

Permalink
Set fixedToolbar to false after each top toolbar test to ensure prope…
Browse files Browse the repository at this point in the history
…r cleanup (#51600)
  • Loading branch information
jeryj authored Jun 16, 2023
1 parent 1d9c4fa commit 7b07b67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/specs/editor/various/shortcut-focus-toolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

1 comment on commit 7b07b67

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 7b07b67.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5292834378
📝 Reported issues:

Please sign in to comment.