Skip to content

Commit

Permalink
VR-263: testing maxDiffPixelRatio of screenshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3op2 committed Nov 14, 2024
1 parent bb72e3a commit 714491b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/a-homepage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test.describe('Homepage and homepage related tests', () => {
const url = page.url()
expect(url).toContain(keycloakUrl)

await expect(page).toHaveScreenshot({ maxDiffPixels: 30 })
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.03 })
})

test.describe('after successful login', async () => {
Expand All @@ -34,7 +34,7 @@ test.describe('Homepage and homepage related tests', () => {
})

test('renders a home page', async () => {
await expect(page).toHaveScreenshot({ maxDiffPixels: 30 })
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.03 })

Check failure on line 37 in test/e2e/a-homepage.spec.ts

View workflow job for this annotation

GitHub Actions / static-checks-npm / Static Analysis Checks - lint

Replace `·maxDiffPixelRatio:·0.03·` with `maxDiffPixelRatio:·0.03`
})
})
})

0 comments on commit 714491b

Please sign in to comment.