Skip to content

Commit da2e35f

Browse files
Fix test; image src is now only set after lightbox opens
1 parent 0eb4712 commit da2e35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/specs/editor/blocks/image.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,11 @@ test.describe( 'Image - interactivity', () => {
828828
const lightbox = page.locator( '.wp-lightbox-overlay' );
829829
await expect( lightbox ).toBeHidden();
830830

831+
await page.getByRole( 'button', { name: 'Enlarge image' } ).click();
832+
831833
const image = lightbox.locator( 'img' );
832834
await expect( image ).toHaveAttribute( 'src', new RegExp( filename ) );
833835

834-
await page.getByRole( 'button', { name: 'Enlarge image' } ).click();
835-
836836
await expect( lightbox ).toBeVisible();
837837

838838
const closeButton = lightbox.getByRole( 'button', {

0 commit comments

Comments
 (0)