Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions test/e2e/specs/editor/various/navigable-toolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ test.describe( 'Block Toolbar', () => {
await admin.createNewPost();
} );

test.afterEach( async ( { requestUtils } ) => {
// Reset preferences via REST so a mid-test failure doesn't leak
// the fixed-toolbar setting (or any other pref) to other tests.
await requestUtils.resetPreferences();
} );

test.describe( 'Contextual Toolbar', () => {
test( 'should not scroll page', async ( { page, pageUtils } ) => {
while (
Expand Down Expand Up @@ -180,8 +186,6 @@ test.describe( 'Block Toolbar', () => {

await BlockToolbarUtils.testScrollable( blockToolbar, blockButton );

// Test cleanup
await editor.setIsFixedToolbar( false );
await pageUtils.setBrowserViewport( 'large' );
} );

Expand Down Expand Up @@ -248,8 +252,6 @@ test.describe( 'Block Toolbar', () => {
// check focus is on the block
await BlockToolbarUtils.expectLabelToHaveFocus( 'Block: Paragraph' );

// Test cleanup
await editor.setIsFixedToolbar( false );
await pageUtils.setBrowserViewport( 'large' );
} );

Expand Down
Loading