Skip to content

Commit

Permalink
Remove dependency on 'experiments' flag in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed May 24, 2023
1 parent cd0c9dd commit 429ebbe
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions test/e2e/specs/editor/blocks/image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,18 +741,6 @@ test.describe( 'Image - interactivity', () => {
} );

test.beforeEach( async ( { admin, page, editor, imageBlockUtils } ) => {
await admin.visitAdminPage(
'/admin.php',
'page=gutenberg-experiments'
);

await page
.locator( `#gutenberg-interactivity-api-core-blocks` )
.setChecked( true );

await page.locator( `input[name="submit"]` ).click();
await page.waitForLoadState();

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

Expand All @@ -771,21 +759,8 @@ test.describe( 'Image - interactivity', () => {
await editor.openDocumentSettingsSidebar();
} );

test.afterEach( async ( { requestUtils, admin, page } ) => {
test.afterEach( async ( { requestUtils } ) => {
await requestUtils.deleteAllMedia();

await admin.visitAdminPage(
'/admin.php',
'page=gutenberg-experiments'
);

await page
.locator( `#gutenberg-interactivity-api-core-blocks` )
.setChecked( false );

await page.locator( `input[name="submit"]` ).click();

await page.waitForLoadState();
} );

test( 'should toggle "lightbox" in saved attributes', async ( {
Expand Down

0 comments on commit 429ebbe

Please sign in to comment.