From 79aacfb18ad0bb8d7dde61b4efe9a2dfb6d1df1e Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Thu, 10 Oct 2024 18:23:45 +0200 Subject: [PATCH] updated test after rebasing trunk with latest changes --- test/e2e/specs/site-editor/zoom-out.spec.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/test/e2e/specs/site-editor/zoom-out.spec.js b/test/e2e/specs/site-editor/zoom-out.spec.js index 9b665f340f5ea4..51da02e08e4fc6 100644 --- a/test/e2e/specs/site-editor/zoom-out.spec.js +++ b/test/e2e/specs/site-editor/zoom-out.spec.js @@ -28,7 +28,7 @@ test.describe( 'Zoom Out', () => { // Check that the html is scaled. await expect( html ).toHaveCSS( 'transform', - 'matrix(0.75, 0, 0, 0.75, 0, 0)' + 'matrix(0.67, 0, 0, 0.67, 0, 0)' ); const iframeRect = await iframe.boundingBox(); const htmlRect = await html.boundingBox(); @@ -38,19 +38,5 @@ test.describe( 'Zoom Out', () => { // 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. - const borderWidths = await html.evaluate( ( el ) => { - const styles = window.getComputedStyle( el ); - return { - top: parseFloat( styles.borderTopWidth ), - right: parseFloat( styles.borderRightWidth ), - bottom: parseFloat( styles.borderBottomWidth ), - left: parseFloat( styles.borderLeftWidth ), - }; - } ); - expect( htmlRect.y + borderWidths.top ).toBeGreaterThan( iframeRect.y ); } ); } );