Skip to content

Commit

Permalink
refactor: update screenshot & comparison options
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Jun 17, 2024
1 parent 5dbedca commit 2e2a6a7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/MindElixirFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export class MindElixirFixture {
await this.page.mouse.move(box.x + box.width / 2, box.y + y)
}
async toHaveScreenshot(locator?: Locator) {
await expect(locator || this.page.locator('me-nodes')).toHaveScreenshot()
await expect(locator || this.page.locator('me-nodes')).toHaveScreenshot({
maxDiffPixelRatio: 0.02,
})
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2e2a6a7

Please sign in to comment.