fix(e2e): fix escaped backticks in visual-regression template literals
This commit is contained in:
parent
e60efddaab
commit
c9448d35e4
@ -10,12 +10,12 @@ const ROUTES: { path: string; name: string }[] = [{path:"/",name:"dashboard"},{p
|
|||||||
|
|
||||||
test.describe("Visual Regression", () => {
|
test.describe("Visual Regression", () => {
|
||||||
for (const route of ROUTES) {
|
for (const route of ROUTES) {
|
||||||
test(\`\${route.name} matches snapshot\`, async ({ page }) => {
|
test(`${route.name} matches snapshot`, async ({ page }) => {
|
||||||
await page.goto(route.path);
|
await page.goto(route.path);
|
||||||
await page.waitForLoadState("networkidle");
|
await page.waitForLoadState("networkidle");
|
||||||
// Allow animations to settle
|
// Allow animations to settle
|
||||||
await page.waitForTimeout(500);
|
await page.waitForTimeout(500);
|
||||||
await expect(page).toHaveScreenshot(\`\${route.name}.png\`, {
|
await expect(page).toHaveScreenshot(`${route.name}.png`, {
|
||||||
fullPage: true,
|
fullPage: true,
|
||||||
maxDiffPixelRatio: 0.01,
|
maxDiffPixelRatio: 0.01,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user