Skip to content

Commit 2e2a6a7

Browse files
committed
refactor: update screenshot & comparison options
1 parent 5dbedca commit 2e2a6a7

File tree

5 files changed

+3
-1
lines changed

5 files changed

+3
-1
lines changed

tests/MindElixirFixture.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ export class MindElixirFixture {
7171
await this.page.mouse.move(box.x + box.width / 2, box.y + y)
7272
}
7373
async toHaveScreenshot(locator?: Locator) {
74-
await expect(locator || this.page.locator('me-nodes')).toHaveScreenshot()
74+
await expect(locator || this.page.locator('me-nodes')).toHaveScreenshot({
75+
maxDiffPixelRatio: 0.02,
76+
})
7577
}
7678
}
-2.75 KB
Loading
-1.16 KB
Loading
-1.24 KB
Loading
-1.21 KB
Loading

0 commit comments

Comments
 (0)