Skip to content

Commit

Permalink
Improve syntax for test
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed Jun 15, 2023
1 parent 463af5c commit dfdd60d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/specs/editor/blocks/image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,10 +991,10 @@ test.describe( 'Image - interactivity', () => {
const postId = await editor.publishPost();
await page.goto( `/?p=${ postId }` );

// The lightbox overlay should not appear in the DOM at all
expect(
await page.locator( '.wp-lightbox-overlay' ).count()
).toEqual( 0 );
// The lightbox markup should not appear in the DOM at all
await expect(
page.getByRole( 'button', { name: 'Enlarge image' } )
).not.toBeInViewport();
} );

test.describe( 'keyboard navigation', () => {
Expand Down

0 comments on commit dfdd60d

Please sign in to comment.