diff --git a/.github/workflows/macro-and-script-tests.yml b/.github/workflows/macro-and-script-tests.yml index 668862b922..68be0c44d1 100644 --- a/.github/workflows/macro-and-script-tests.yml +++ b/.github/workflows/macro-and-script-tests.yml @@ -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__ diff --git a/src/components/access-code/access-code-vr.spec.js b/src/components/access-code/access-code-vr.spec.js index 05b2acabc1..fd71045758 100644 --- a/src/components/access-code/access-code-vr.spec.js +++ b/src/components/access-code/access-code-vr.spec.js @@ -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();