Skip to content

Commit

Permalink
test: apply strict pixel threshholds for screenshot tests (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker authored Oct 7, 2024
1 parent cb86dd3 commit bb6f165
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Binary file modified e2e/screenshots/button-variant-tag-.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/screenshots/combobox-error-.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/screenshots/combobox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/screenshots/dark--combobox-error-.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion playwright-ct.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@ export default defineConfig({
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
]
],
expect: {
toHaveScreenshot: {
maxDiffPixels: 0,
threshold: 0
}
}
});

0 comments on commit bb6f165

Please sign in to comment.