Skip to content

Commit

Permalink
reformat comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Oct 10, 2024
1 parent d00a5f8 commit be1e548
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/specs/site-editor/zoom-out.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ test.describe( 'Zoom Out', () => {
const iframe = page.locator( 'iframe[name="editor-canvas"]' );
const html = editor.canvas.locator( 'html' );

//Check that the html is scaled
// Check that the html is scaled.
await expect( html ).toHaveCSS(
'transform',
'matrix(0.75, 0, 0, 0.75, 0, 0)'
);
const iframeRect = await iframe.boundingBox();
const htmlRect = await html.boundingBox();

//Check that the iframe is larger than the html
// Check that the iframe is larger than the html.
expect( iframeRect.width ).toBeGreaterThan( htmlRect.width );

//Check that the zoomed out content has a frame around it
// Check that the zoomed out content has a frame around it.
expect( htmlRect.x ).toBeGreaterThan( iframeRect.x );

//We use border to separate the content from the frame so we need
//to check that that is present too, since boundingBox()
//includes the border to calculate the position
// We use border to separate the content from the frame so we need
// to check that that is present too, since boundingBox()
// includes the border to calculate the position.
const borderWidths = await html.evaluate( ( el ) => {
const styles = window.getComputedStyle( el );
return {
Expand Down

0 comments on commit be1e548

Please sign in to comment.