[Playwright] Change to use firefox + other mobile junk

This commit is contained in:
Aaro Koivukangas
2026-10-11 03:39:46 +03:00
parent b8770275c4
commit 584f5213e6
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
node-version: 22
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npx playwright install --with-deps firefox
- run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: failure()
+1 -1
View File
@@ -58,7 +58,7 @@ npm run lint # oxlint
npm run format:check # oxfmt (npm run format to fix)
npm run typecheck
npm test # unit + API integration tests
npx playwright install chromium # once
npx playwright install firefox # once
npm run test:e2e # builds, starts two test servers, runs Playwright
```
+7 -2
View File
@@ -20,7 +20,12 @@ export default defineConfig({
},
webServer: [server(3100, 'e2e/.data/main'), server(3101, 'e2e/.data/invite', 'REGISTRATION_CODE=let-me-in-please')],
projects: [
{ name: 'desktop', use: { ...devices['Desktop Chrome'] }, grepInvert: /@mobile/ },
{ name: 'mobile', use: { ...devices['Pixel 7'] }, grep: /@mobile/ },
{ name: 'desktop', use: { ...devices['Desktop Firefox'] }, grepInvert: /@mobile/ },
{
// Firefox has no mobile emulation (isMobile), so this is a phone-sized touch screen.
name: 'mobile',
use: { ...devices['Desktop Firefox'], viewport: { width: 412, height: 915 }, hasTouch: true },
grep: /@mobile/,
},
],
});