diff --git a/pages/workspace/main-page.js b/pages/workspace/main-page.js index 87945e79..5f3464a2 100644 --- a/pages/workspace/main-page.js +++ b/pages/workspace/main-page.js @@ -22,6 +22,9 @@ exports.MainPage = class MainPage extends BasePage { this.mainToolBar = page.locator( '[class*="main-toolbar"] button[class*="toolbar-handler"]', ); + this.toolBarWindow = page.locator( + 'aside[class*="main-toolbar"]', + ).first(); this.designTab = page.getByRole("tab", { name: "design" }); //Viewport diff --git a/tests/components/main-components/context-menu-options.spec.js b/tests/components/main-components/context-menu-options.spec.js index 8f9d0e02..e6d7171e 100644 --- a/tests/components/main-components/context-menu-options.spec.js +++ b/tests/components/main-components/context-menu-options.spec.js @@ -583,7 +583,9 @@ mainTest.describe(() => { await designPanelPage.isFillHexCodeSet('0B33A9'); await expect(mainPage.viewport).toHaveScreenshot( - 'main-copies-component-change-color.png', + 'main-copies-component-change-color.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow] + }, ); }, ); diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/main-copies-component-change-color.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/main-copies-component-change-color.png index 607758df..8486a016 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/main-copies-component-change-color.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/main-copies-component-change-color.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color.png index 5d33b1dd..b2a1a345 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color.png differ diff --git a/tests/components/main-components/create-main-components.spec.js b/tests/components/main-components/create-main-components.spec.js index c563854b..c3ecc135 100644 --- a/tests/components/main-components/create-main-components.spec.js +++ b/tests/components/main-components/create-main-components.spec.js @@ -220,8 +220,9 @@ mainTest(qase(1437,'Create component from curve by right-click'), async ({ page await layersPanelPage.createComponentViaRightClickLayers(); await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot( - 'curve-main-component-canvas.png', - ); + 'curve-main-component-canvas.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow] + }); await expect(layersPanelPage.layersSidebar).toHaveScreenshot( 'curve-main-component-layer.png', ); diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-main-component-canvas.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-main-component-canvas.png index 4c9d94f7..cc745062 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-main-component-canvas.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-main-component-canvas.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-canvas.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-canvas.png index cc4e39c1..40d9634c 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-canvas.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-canvas.png differ diff --git a/tests/components/main-components/update-main-components.spec.js b/tests/components/main-components/update-main-components.spec.js index ccfce2cf..f6f5ea27 100644 --- a/tests/components/main-components/update-main-components.spec.js +++ b/tests/components/main-components/update-main-components.spec.js @@ -136,7 +136,10 @@ mainTest.describe(() => { await mainPage.clickViewportByCoordinates(400, 400); await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot( - 'main-copies-component-add-stroke.png', + 'main-copies-component-add-stroke.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + } ); }, ); @@ -172,9 +175,8 @@ mainTest.describe(() => { await mainPage.refreshPage(); await mainPage.waitForViewportVisible(); await expect(mainPage.viewport).toHaveScreenshot( - 'main-copies-component-shadow-default.png', - { - mask: [mainPage.guides, mainPage.guidesFragment], + 'main-copies-component-shadow-default.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 0, }, ); @@ -205,7 +207,7 @@ mainTest.describe(() => { await mainPage.waitForChangeIsSaved(); await mainPage.refreshPage(); await expect(mainPage.viewport).toHaveScreenshot('main-copies-component-blur.png', { - mask: [mainPage.guides, mainPage.guidesFragment], + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 0, }); }, @@ -221,7 +223,7 @@ mainTest.describe(() => { await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot('main-copies-component-grid-default.png', { - mask: [mainPage.guides, mainPage.guidesFragment], + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 0, }); await designPanelPage.changeSizeForGrid('4'); @@ -230,7 +232,7 @@ mainTest.describe(() => { await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot( 'main-copies-component-grid-updated.png', { - mask: [mainPage.guides, mainPage.guidesFragment], + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 0, } ); @@ -270,7 +272,7 @@ mainTest.describe("Text", () => { browserName === 'webkit' ? null : await mainPage.refreshPage(); await mainPage.waitForViewportVisible(); await expect(mainPage.viewport).toHaveScreenshot('main-copies-component-text.png', { - mask: [mainPage.guides, mainPage.guidesFragment], + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 0, }); }, @@ -360,7 +362,7 @@ mainTest.describe(() => { await layersPanelPage.clickMainComponentOnLayersTab(); await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot('main-copies-component-change-grid.png', { - mask: [mainPage.guides, mainPage.guidesFragment], + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 0, }); }, diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-add-stroke.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-add-stroke.png index db62d556..e571cd2f 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-add-stroke.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-add-stroke.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png index 8f9098b1..fa969172 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png index 0eb2d5b6..597bdccb 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png index 2c9a9397..593acf70 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png index ef44a8ec..c9840c24 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png index ca9ae3fd..031e390c 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png index e7a4aaa3..946c1956 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png index 843a5956..70284fb7 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-add-stroke.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-add-stroke.png index eb7761b8..42849451 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-add-stroke.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-add-stroke.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png index c06b4b65..61cc5666 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png index f4942616..61a67b3b 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png index 2a7c734d..a3627c3a 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png index 32a9569a..20d390ce 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png index 7190b888..56c32523 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png index 93f760ce..f9642e02 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png index a54f962c..0692d8a3 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png differ diff --git a/tests/composition/composition-flex-layout.spec.js b/tests/composition/composition-flex-layout.spec.js index 65eca26a..12ccde96 100644 --- a/tests/composition/composition-flex-layout.spec.js +++ b/tests/composition/composition-flex-layout.spec.js @@ -504,9 +504,10 @@ mainTest.describe(() => { await layersPanelPage.selectBoardChildLayer('Ellipse'); await designPanelPage.isFlexElementSectionOpened(); await designPanelPage.setFlexElementPositionAbsolute(); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); await expect(page).toHaveScreenshot('flex-element-position-absolute.png', { - mask: [mainPage.guides, mainPage.usersSection], + mask: [mainPage.guides, mainPage.usersSection, mainPage.toolBarWindow], }); }, ); diff --git a/tests/composition/composition-flex-layout.spec.js-snapshots/win32/chrome/flex-element-position-absolute.png b/tests/composition/composition-flex-layout.spec.js-snapshots/win32/chrome/flex-element-position-absolute.png index 961aabd9..e702dfe1 100644 Binary files a/tests/composition/composition-flex-layout.spec.js-snapshots/win32/chrome/flex-element-position-absolute.png and b/tests/composition/composition-flex-layout.spec.js-snapshots/win32/chrome/flex-element-position-absolute.png differ diff --git a/tests/composition/composition-flex-layout.spec.js-snapshots/win32/firefox/flex-element-position-absolute.png b/tests/composition/composition-flex-layout.spec.js-snapshots/win32/firefox/flex-element-position-absolute.png index e8a215cf..c5139256 100644 Binary files a/tests/composition/composition-flex-layout.spec.js-snapshots/win32/firefox/flex-element-position-absolute.png and b/tests/composition/composition-flex-layout.spec.js-snapshots/win32/firefox/flex-element-position-absolute.png differ diff --git a/tests/composition/composition-image.spec.js b/tests/composition/composition-image.spec.js index 7c133aea..523eddd9 100644 --- a/tests/composition/composition-image.spec.js +++ b/tests/composition/composition-image.spec.js @@ -267,33 +267,61 @@ mainTest.describe(() => { const designPanelPage = new DesignPanelPage(page); await designPanelPage.changeGeneralCornerRadiusForLayer('30'); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-corners-30.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-corners-30.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); await designPanelPage.changeGeneralCornerRadiusForLayer('90'); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-corners-90.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-corners-90.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); await designPanelPage.changeGeneralCornerRadiusForLayer('180'); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-corners-180.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-corners-180.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); await designPanelPage.changeGeneralCornerRadiusForLayer('0'); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-corners-0.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-corners-0.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); }); mainTest(qase(1270,'CO-412 Add rotation to image'), async ({ page }) => { const mainPage = new MainPage(page); const designPanelPage = new DesignPanelPage(page); await designPanelPage.changeRotationForLayer('90'); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-rotated-90.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-rotated-90.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); await designPanelPage.changeRotationForLayer('120'); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-rotated-120.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-rotated-120.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); await designPanelPage.changeRotationForLayer('45'); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-rotated-45.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-rotated-45.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); await designPanelPage.changeRotationForLayer('360'); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); - await expect(mainPage.viewport).toHaveScreenshot('image-rotated-359.png'); + await expect(mainPage.viewport).toHaveScreenshot('image-rotated-359.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], + maxDiffPixels: 0, + }); }); mainTest(qase(474,'CO-259 Flip Vertical and Flip Horizontal image'), async ({ page }) => { diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-0.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-0.png index 9fc23756..f3003754 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-0.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-0.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-180.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-180.png index c22745dc..a5f18a11 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-180.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-180.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-30.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-30.png index 65b9e3f5..1c0a8ba1 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-30.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-30.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-90.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-90.png index 5ee86343..1e9bec3e 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-90.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-corners-90.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-120.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-120.png index 10c1666f..6e7bcefe 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-120.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-120.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-359.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-359.png index 969864ba..730620a0 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-359.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-359.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-45.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-45.png index a55b554c..fa4afa0e 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-45.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-45.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-90.png b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-90.png index 827b339a..5ef0a5d3 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-90.png and b/tests/composition/composition-image.spec.js-snapshots/win32/chrome/image-rotated-90.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-0.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-0.png index 44dc8dc7..271e8f95 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-0.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-0.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-180.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-180.png index 2e1b11f8..6d56e14a 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-180.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-180.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-30.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-30.png index 621f1ce3..3d5ee5c0 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-30.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-30.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-90.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-90.png index 6dd7c17d..5efbfbf6 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-90.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-corners-90.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-120.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-120.png index 07dc8476..b6028b9f 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-120.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-120.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-359.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-359.png index 8bf04e95..03a08ef8 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-359.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-359.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-45.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-45.png index 1703a908..3537bdbc 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-45.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-45.png differ diff --git a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-90.png b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-90.png index 067c28f4..ff88704b 100644 Binary files a/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-90.png and b/tests/composition/composition-image.spec.js-snapshots/win32/firefox/image-rotated-90.png differ diff --git a/tests/composition/composition-rectangle.spec.js b/tests/composition/composition-rectangle.spec.js index 9d5d7233..22dbf5ba 100644 --- a/tests/composition/composition-rectangle.spec.js +++ b/tests/composition/composition-rectangle.spec.js @@ -318,9 +318,10 @@ mainTest.describe(() => { mainTest(qase(319,'CO-104 Transform rectangle to path'), async ({ page }) => { const mainPage = new MainPage(page); await mainPage.transformToPathViaRightClick(); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); await expect(page).toHaveScreenshot('rectangle-to-path.png', { - mask: [mainPage.usersSection], + mask: [mainPage.usersSection, mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], }); }); diff --git a/tests/composition/composition-rectangle.spec.js-snapshots/win32/chrome/rectangle-to-path.png b/tests/composition/composition-rectangle.spec.js-snapshots/win32/chrome/rectangle-to-path.png index 24b905bd..e6dd1781 100644 Binary files a/tests/composition/composition-rectangle.spec.js-snapshots/win32/chrome/rectangle-to-path.png and b/tests/composition/composition-rectangle.spec.js-snapshots/win32/chrome/rectangle-to-path.png differ diff --git a/tests/composition/composition-rectangle.spec.js-snapshots/win32/firefox/rectangle-to-path.png b/tests/composition/composition-rectangle.spec.js-snapshots/win32/firefox/rectangle-to-path.png index 8d9c6696..8150af39 100644 Binary files a/tests/composition/composition-rectangle.spec.js-snapshots/win32/firefox/rectangle-to-path.png and b/tests/composition/composition-rectangle.spec.js-snapshots/win32/firefox/rectangle-to-path.png differ diff --git a/tests/composition/composition-text.spec.js b/tests/composition/composition-text.spec.js index 0f1a82da..a9640297 100644 --- a/tests/composition/composition-text.spec.js +++ b/tests/composition/composition-text.spec.js @@ -278,11 +278,13 @@ mainTest.describe(() => { await designPanelPage.changeTextDirection('RTL'); await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot('text-rtl.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 30, }); await designPanelPage.changeTextDirection('LTR'); await mainPage.waitForChangeIsSaved(); await expect(mainPage.viewport).toHaveScreenshot('text-ltr.png', { + mask: [mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], maxDiffPixels: 40, }); }); diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png index af30e716..ba228c28 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png and b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png differ diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png index 50cff471..7b7a1d78 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png and b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png differ diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png index 288aac2a..c85e429c 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png and b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png differ diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png index 337e16d0..65199274 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png and b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js b/tests/panels-features/panels-features-prototype.spec.js index f6109701..ea647b7b 100644 --- a/tests/panels-features/panels-features-prototype.spec.js +++ b/tests/panels-features/panels-features-prototype.spec.js @@ -60,10 +60,11 @@ mainTest.describe(() => { const mainPage = new MainPage(page); const prototypePanelPage = new PrototypePanelPage(page); await prototypePanelPage.clickAddInteractionButton(); + await mainPage.waitForChangeIsUnsaved(); await mainPage.waitForChangeIsSaved(); await prototypePanelPage.isPrototypeArrowSecondConnectorDisplayed(); await expect(page).toHaveScreenshot('add-interaction.png', { - mask: [mainPage.usersSection], + mask: [mainPage.usersSection, mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], }); }); @@ -91,7 +92,7 @@ mainTest.describe(() => { await prototypePanelPage.isFlowNameDisplayedOnPrototypePanel('Flow 2'); await mainPage.clickViewportByCoordinates(300, 700); await expect(page).toHaveScreenshot('add-2nd-flow.png', { - mask: [mainPage.usersSection], + mask: [mainPage.usersSection, mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], }); }); diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-2nd-flow.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-2nd-flow.png index 3598bd5e..64aceb0a 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-2nd-flow.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-2nd-flow.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-interaction.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-interaction.png index 56eb9ce0..09a86040 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-interaction.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/add-interaction.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-2nd-flow.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-2nd-flow.png index 92997e8d..54c91591 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-2nd-flow.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-2nd-flow.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-interaction.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-interaction.png index 8e9cf9d9..05f2013b 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-interaction.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/add-interaction.png differ diff --git a/tests/panels-features/panels-features-zoom.spec.js b/tests/panels-features/panels-features-zoom.spec.js index e62b93e8..afb3257f 100644 --- a/tests/panels-features/panels-features-zoom.spec.js +++ b/tests/panels-features/panels-features-zoom.spec.js @@ -78,6 +78,6 @@ mainTest(qase(856,'PF-138 Zoom to selected via top right menu'), async ({ page } await mainPage.zoomToFitSelected(); await mainPage.clickViewportTwice(); await expect(page).toHaveScreenshot('canvas-zoom-to-selected.png', { - mask: [mainPage.usersSection], + mask: [mainPage.usersSection, mainPage.guides, mainPage.guidesFragment, mainPage.toolBarWindow], }); }); diff --git a/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/chrome/canvas-zoom-to-selected.png b/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/chrome/canvas-zoom-to-selected.png index 8a344f49..71e28a29 100644 Binary files a/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/chrome/canvas-zoom-to-selected.png and b/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/chrome/canvas-zoom-to-selected.png differ diff --git a/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/firefox/canvas-zoom-to-selected.png b/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/firefox/canvas-zoom-to-selected.png index 656e44d2..73c847df 100644 Binary files a/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/firefox/canvas-zoom-to-selected.png and b/tests/panels-features/panels-features-zoom.spec.js-snapshots/win32/firefox/canvas-zoom-to-selected.png differ diff --git a/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-copy-width-image.png b/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-copy-width-image.png index 267278b8..01e4295b 100644 Binary files a/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-copy-width-image.png and b/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-copy-width-image.png differ diff --git a/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-export-right-sidebar-image.png b/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-export-right-sidebar-image.png index 64f580d9..db708daa 100644 Binary files a/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-export-right-sidebar-image.png and b/tests/view-mode.spec.js-snapshots/win32/chrome/view-mode-export-right-sidebar-image.png differ