Skip to content

Commit

Permalink
test: set down diff threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Aug 29, 2024
1 parent c29dd6f commit c1a497f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elements/clock/clock.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
}

.sbb-clock__hand-minutes {
transition: transform 0.2s cubic-bezier(0.4, 2.08, 0.55, 0.44);
transition: transform var(--sbb-disable-animation-zero-time, 0.2s)
cubic-bezier(0.4, 2.08, 0.55, 0.44);

@supports not (aspect-ratio: 1 / 1) {
transform-origin: 50% 49.625%;
Expand Down
1 change: 1 addition & 0 deletions tools/web-test-runner/visual-regression-plugin-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ writeFileSync(new URL(`./${metaFileName}`, screenshotsDir), JSON.stringify(meta)

export const visualRegressionConfig = {
baseDir: 'dist/screenshots',
diffOptions: { threshold: 0.03 },
async getBaseline({ filePath, name }) {
const baselineFileUrl = baselineUrl + name + extname(filePath);
const infoFilePath = filePath + '.json';
Expand Down

0 comments on commit c1a497f

Please sign in to comment.