File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 test :
1616 strategy :
1717 matrix :
18- os : [macos-latest, ubuntu-latest]
18+ os : [macos-latest, ubuntu-latest, windows-latest ]
1919 runs-on : ${{ matrix.os }}
2020 timeout-minutes : 15
2121
4141 id : playwright-cache
4242 uses : actions/cache@v4
4343 with :
44- path : ${{ matrix.os == 'macos-latest' && '~/Library/Caches/ms-playwright' || '~/ .cache/ms-playwright' }}
44+ path : ${{ matrix.os == 'macos-latest' && '~/Library/Caches/ms-playwright' || (matrix.os == 'windows-latest' && '~/AppData/Local/ms-playwright' || '~/ .cache/ms-playwright') }}
4545 key : playwright-${{ matrix.os }}-${{ hashFiles('package-lock.json') }}
4646
4747 - name : Install Playwright browsers
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default defineConfig({
1818 expect : {
1919 toHaveScreenshot : {
2020 // 2% threshold: tolerates system font differences across platforms
21- // (macOS uses San Francisco, Linux uses Noto Sans/DejaVu)
21+ // (macOS: San Francisco, Linux: Noto Sans/DejaVu, Windows: Segoe UI )
2222 maxDiffPixelRatio : 0.02 ,
2323 // Per-pixel threshold: allow slight color variance from anti-aliasing
2424 threshold : 0.2 ,
You can’t perform that action at this time.
0 commit comments