Skip to content

Commit

Permalink
round values for the test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Oct 11, 2024
1 parent 45c3cc7 commit 69d9cbf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/specs/site-editor/zoom-out.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ test.describe( 'Zoom Out', () => {
const firstPatternRect = await firstPattern.boundingBox();

//Check that the toolbar is vertically aligned to the pattern and to the left
expect( toolbarRect.y ).toEqual( firstPatternRect.y );
expect( toolbarRect.x + toolbarRect.width ).toEqual(
firstPatternRect.x
expect( Math.round( toolbarRect.y ) ).toEqual(
Math.round( firstPatternRect.y )
);
expect(
Math.round( toolbarRect.x ) + Math.round( toolbarRect.width )
).toEqual( Math.round( firstPatternRect.x ) );
} );
} );

0 comments on commit 69d9cbf

Please sign in to comment.