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