Skip to content

Commit

Permalink
- Update playwright.yml to try to include auto-snapshot updates
Browse files Browse the repository at this point in the history
- Update darwin snapshots
  • Loading branch information
infinia-yzl committed Dec 28, 2024
1 parent add55ab commit f98ea1f
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 10 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,31 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
id: run-tests
continue-on-error: true
run: npx playwright test
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}

- name: Wait for user input
if: steps.run-tests.outcome == 'failure'
uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: ${{ github.actor }}
minimum-approvals: 1
message: 'Tests failed - Update snapshots?'

- name: Update snapshots
if: steps.run-tests.outcome == 'failure'
run: npx playwright test --update-snapshots
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Upload snapshots on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results/
retention-days: 30
9 changes: 9 additions & 0 deletions imageset.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,15 @@
"h_1"
]
},
{
"filename": "hzd.webp",
"label": "Hazard",
"tags": [
"tank",
"h_all",
"h_2"
]
},
{
"filename": "ill.webp",
"label": "Illari",
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f98ea1f

Please sign in to comment.