diff --git a/tests/src/test.spec.ts b/tests/src/test.spec.ts index 437f834..8dcdec5 100644 --- a/tests/src/test.spec.ts +++ b/tests/src/test.spec.ts @@ -85,7 +85,7 @@ async function screenshot(page: Page) { await page.locator('.p-icon--spinner.u-animation--spin.spinner').waitFor({ state: "hidden" }) await screenshot(page) } else { - await expect.soft(page).toHaveScreenshot({ mask: [page.locator(".hide-in-test")], animations: "disabled", fullPage: true }) + await expect.soft(page).toHaveScreenshot({ animations: "disabled", fullPage: true }) } } @@ -109,6 +109,7 @@ function cipherPage(name: string) { test.beforeEach(async ({ page }) => { await page.goto(`file://${__dirname}/../../build/all/app/install/index.html`); + await page.addStyleTag({ content: '.hide-in-test {opacity: 0;}' }) }) if (process.env.RECORD_TEST === "true") { diff --git a/tests/src/test.spec.ts-snapshots/Cards-view-1-Pixel-3-linux.png b/tests/src/test.spec.ts-snapshots/Cards-view-1-Pixel-3-linux.png index 0494468..4bf9ee1 100644 Binary files a/tests/src/test.spec.ts-snapshots/Cards-view-1-Pixel-3-linux.png and b/tests/src/test.spec.ts-snapshots/Cards-view-1-Pixel-3-linux.png differ diff --git a/tests/src/test.spec.ts-snapshots/Contacts-view-1-Pixel-3-linux.png b/tests/src/test.spec.ts-snapshots/Contacts-view-1-Pixel-3-linux.png index 8d8e366..1803698 100644 Binary files a/tests/src/test.spec.ts-snapshots/Contacts-view-1-Pixel-3-linux.png and b/tests/src/test.spec.ts-snapshots/Contacts-view-1-Pixel-3-linux.png differ diff --git a/tests/src/test.spec.ts-snapshots/Filled-ciphers-page-1-Pixel-3-linux.png b/tests/src/test.spec.ts-snapshots/Filled-ciphers-page-1-Pixel-3-linux.png index 2e91c2d..9da61f1 100644 Binary files a/tests/src/test.spec.ts-snapshots/Filled-ciphers-page-1-Pixel-3-linux.png and b/tests/src/test.spec.ts-snapshots/Filled-ciphers-page-1-Pixel-3-linux.png differ diff --git a/tests/src/test.spec.ts-snapshots/Notes-view-1-Pixel-3-linux.png b/tests/src/test.spec.ts-snapshots/Notes-view-1-Pixel-3-linux.png index 623b321..f15e3b4 100644 Binary files a/tests/src/test.spec.ts-snapshots/Notes-view-1-Pixel-3-linux.png and b/tests/src/test.spec.ts-snapshots/Notes-view-1-Pixel-3-linux.png differ diff --git a/tests/src/test.spec.ts-snapshots/Passwords-view-1-Pixel-3-linux.png b/tests/src/test.spec.ts-snapshots/Passwords-view-1-Pixel-3-linux.png index 1fcf207..cab287e 100644 Binary files a/tests/src/test.spec.ts-snapshots/Passwords-view-1-Pixel-3-linux.png and b/tests/src/test.spec.ts-snapshots/Passwords-view-1-Pixel-3-linux.png differ diff --git a/tests/src/test.spec.ts-snapshots/Side-bar-1-Pixel-3-linux.png b/tests/src/test.spec.ts-snapshots/Side-bar-1-Pixel-3-linux.png index 9da4233..d9ba67e 100644 Binary files a/tests/src/test.spec.ts-snapshots/Side-bar-1-Pixel-3-linux.png and b/tests/src/test.spec.ts-snapshots/Side-bar-1-Pixel-3-linux.png differ