Skip to content

Commit

Permalink
update vr diff
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Sep 20, 2024
1 parent 6c405fe commit 76e484f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/macro-and-script-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ jobs:
run: yarn test:clear-cache
- name: Run macro and script tests
run: yarn test
- name: Archive VR reports
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: backstop-reports
path: |
__diff_output__
2 changes: 1 addition & 1 deletion src/components/access-code/access-code-vr.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('FOR: VR: Access-code', () => {
// const jestVRConfig = require('./jest-vr.config.js');
const { configureToMatchImageSnapshot } = require('jest-image-snapshot');
const toMatchImageSnapshot = configureToMatchImageSnapshot({
customDiffConfig: { threshold: 0.1, dumpDiffToConsole: true },
customDiffConfig: { threshold: 0.1, customDiffDir: './__diff_output__/' },
});
expect.extend({ toMatchImageSnapshot });
const image = await page.screenshot();
Expand Down

0 comments on commit 76e484f

Please sign in to comment.