diff --git a/.github/workflows/actions/test-core-screenshot/action.yml b/.github/workflows/actions/test-core-screenshot/action.yml index b3f17f1b0c..2afdf38d8d 100644 --- a/.github/workflows/actions/test-core-screenshot/action.yml +++ b/.github/workflows/actions/test-core-screenshot/action.yml @@ -49,7 +49,7 @@ runs: # which is why we not using the upload-archive # composite step here. run: | - npm run test.e2e.docker.ci ${{ inputs.component }} -- --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots + npm run test.e2e.docker.ci ${{ inputs.component }} -- --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots='changed' git add src/\*.png --force mkdir updated-screenshots cd ../ && rsync -R --progress $(git diff --name-only --cached) core/updated-screenshots diff --git a/core/package.json b/core/package.json index ea13530c77..4d09cd1d05 100644 --- a/core/package.json +++ b/core/package.json @@ -93,13 +93,13 @@ "test": "npm run test.spec && npm run test.e2e", "test.spec": "stencil test --spec --max-workers=2", "test.e2e": "npx playwright test", - "test.e2e.update-snapshots": "npm run test.e2e -- --update-snapshots", + "test.e2e.update-snapshots": "npm run test.e2e -- --update-snapshots='changed'", "test.watch": "jest --watch --no-cache", "test.treeshake": "node scripts/treeshaking.js dist/index.js", "validate": "npm run lint && npm run test && npm run build && npm run test.treeshake", "docker.build": "docker build -t ionic-playwright .", "test.e2e.docker": "npm run docker.build && node ./scripts/docker.mjs", - "test.e2e.docker.update-snapshots": "npm run test.e2e.docker -- --update-snapshots", + "test.e2e.docker.update-snapshots": "npm run test.e2e.docker -- --update-snapshots='changed'", "test.e2e.docker.ci": "npm run docker.build && CI=true node ./scripts/docker.mjs", "test.e2e.script": "node scripts/testing/e2e-script.mjs" },