Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Skelton committed Mar 21, 2022
1 parent 2a5b077 commit 8037538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
/>

<style>
html {
font-family: Arial, Helvetica, sans-serif;
}
body {
max-width: 1440px;
margin: 0 auto;
Expand Down
4 changes: 2 additions & 2 deletions test/spec/reporter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ test.describe('HTML reporter', () => {
test('without errors', async ({ page, run }) => {
await run(pass)
await page.locator('summary').first().click()
expect(await page.screenshot()).toMatchSnapshot()
expect(await page.screenshot()).toMatchSnapshot({ maxDiffPixelRatio: 0.5 })
})

test('with errors', async ({ page, run }) => {
await run('<div>hello</div>')
await page.locator('summary').first().click()
expect(await page.screenshot()).toMatchSnapshot()
expect(await page.screenshot()).toMatchSnapshot({ maxDiffPixelRatio: 0.5 })
})
})

0 comments on commit 8037538

Please sign in to comment.