test: configure Playwright tests to always run as nightly builds

- Set IS_NIGHTLY=true for all Playwright test runs
- Update CI workflows to pass IS_NIGHTLY=true to test commands
- Update package.json test:browser scripts to include IS_NIGHTLY=true
- Update dialog test to expect 'oss-nightly' instead of 'oss'
- Also update playwright expectations workflow to use IS_NIGHTLY=true

This ensures consistent test behavior regardless of where tests run,
since Playwright tests now always run with IS_NIGHTLY=true.
This commit is contained in:
Johnpaul
2026-01-27 23:24:59 +01:00
parent 0ac13a6f8d
commit 664be8fc19
7 changed files with 24 additions and 118 deletions

View File

@@ -70,6 +70,7 @@ jobs:
run: pnpm exec playwright test --project=chromium --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --reporter=blob
env:
PLAYWRIGHT_BLOB_OUTPUT_DIR: ./blob-report
IS_NIGHTLY: 'true'
- name: Upload blob report
uses: actions/upload-artifact@v4
@@ -117,6 +118,7 @@ jobs:
run: pnpm exec playwright test --project=${{ matrix.browser }} --reporter=blob
env:
PLAYWRIGHT_BLOB_OUTPUT_DIR: ./blob-report
IS_NIGHTLY: 'true'
- name: Generate HTML and JSON reports
if: always()

View File

@@ -110,6 +110,8 @@ jobs:
- name: Update snapshots (Shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }})
id: playwright-tests
run: pnpm exec playwright test --update-snapshots --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
env:
IS_NIGHTLY: 'true'
continue-on-error: true
- name: Stage changed snapshot files