Skip to content

Commit

Permalink
Remove erroneous code
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed May 3, 2024
1 parent 8366520 commit 0a67c0c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/e2e/specs/editor/blocks/image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,21 +981,6 @@ test.describe( 'Image - lightbox', () => {
canvas: 'edit',
} );

const imageBlocks = editor.canvas.locator(
'role=document[name="Block: Image"i]'
);

const count = await imageBlocks.count(); // Get the count of elements

for ( let i = count - 1; i >= 0; i-- ) {
const block = imageBlocks.nth( i );
await block.click();
await page.keyboard.press( 'Backspace' );
if ( i === 0 ) {
await editor.saveSiteEditorEntities();
}
}

await page
.getByRole( 'region', { name: 'Editor top bar' } )
.getByRole( 'button', { name: 'Styles' } )
Expand Down

0 comments on commit 0a67c0c

Please sign in to comment.