feat(e2e): add browser selection support for app-level E2E tests

This commit is contained in:
yiling
2026-07-10 15:35:59 +08:00
parent 26982ee494
commit cd96015b9d
+43 -2
View File
@@ -25,8 +25,9 @@ export default defineConfig({
},
projects: [
/* Harness Integration Projects */
{
name: 'harness',
name: 'harness-chromium',
testDir: './packages/webui/e2e/tests',
use: {
...devices['Desktop Chrome'],
@@ -35,7 +36,27 @@ export default defineConfig({
},
},
{
name: 'app',
name: 'harness-firefox',
testDir: './packages/webui/e2e/tests',
use: {
...devices['Desktop Firefox'],
// eslint-disable-next-line @typescript-eslint/naming-convention
baseURL: 'http://localhost:5199',
},
},
{
name: 'harness-webkit',
testDir: './packages/webui/e2e/tests',
use: {
...devices['Desktop Safari'],
// eslint-disable-next-line @typescript-eslint/naming-convention
baseURL: 'http://localhost:5199',
},
},
/* Fullstack App E2E Projects */
{
name: 'app-chromium',
testDir: './apps/web/e2e',
fullyParallel: false, // run sequentially to avoid DB and storage conflicts
use: {
@@ -44,6 +65,26 @@ export default defineConfig({
baseURL: 'http://localhost:5200',
},
},
{
name: 'app-firefox',
testDir: './apps/web/e2e',
fullyParallel: false,
use: {
...devices['Desktop Firefox'],
// eslint-disable-next-line @typescript-eslint/naming-convention
baseURL: 'http://localhost:5200',
},
},
{
name: 'app-webkit',
testDir: './apps/web/e2e',
fullyParallel: false,
use: {
...devices['Desktop Safari'],
// eslint-disable-next-line @typescript-eslint/naming-convention
baseURL: 'http://localhost:5200',
},
},
],
// Launch both the isolated harness server and the fullstack web app server