Skip to content

Commit

Permalink
Try to fix the image rotating flaky test (#41808)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored Jun 21, 2022
1 parent 157fd7a commit 6250a1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/specs/editor/blocks/image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,11 @@ test.describe( 'Image', () => {
).toBeHidden();

// Assert that the image is edited.
await expect
.poll( async () => imageBlockUtils.getDataURL( image ) )
.not.toBe( initialImageDataURL );

const updatedImageDataURL = await imageBlockUtils.getDataURL( image );
expect( initialImageDataURL ).not.toEqual( updatedImageDataURL );

expect(
snapshotDiff( initialImageDataURL, updatedImageDataURL )
Expand Down

0 comments on commit 6250a1f

Please sign in to comment.