Skip to content

Commit

Permalink
E2E: Remove redundant post creation and remove settings cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshupathak95 committed Feb 5, 2025
1 parent fb08913 commit acb4d04
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/e2e/specs/editor/blocks/spacer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ test.describe( 'Spacer', () => {
} );

test( 'should work in theme without spacing units support', async ( {
admin,
editor,
page,
} ) => {
Expand All @@ -66,20 +65,10 @@ test.describe( 'Spacer', () => {
} );
} );

await admin.createNewPost();
await editor.insertBlock( { name: 'core/spacer' } );

await expect(
editor.canvas.locator( '.block-editor-warning' )
).toBeHidden();

await page.evaluate( () => {
if ( window.__originalSettings ) {
window.wp.data
.dispatch( 'core/block-editor' )
.updateSettings( window.__originalSettings );
delete window.__originalSettings;
}
} );
} );
} );

0 comments on commit acb4d04

Please sign in to comment.