mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 12:59:48 +00:00
feat(e2e): add browser selection support for app-level E2E tests
This commit is contained in:
+43
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user