chore: add quick test command

This commit is contained in:
tzhangchi
2022-12-21 21:03:48 +08:00
parent e913f4ebcf
commit b7bc57b823
2 changed files with 4 additions and 15 deletions
+1
View File
@@ -8,6 +8,7 @@
"export": "pnpm --filter @pathfinder/app export", "export": "pnpm --filter @pathfinder/app export",
"start": "pnpm --filter @pathfinder/app start", "start": "pnpm --filter @pathfinder/app start",
"lint": "pnpm --filter @pathfinder/app lint", "lint": "pnpm --filter @pathfinder/app lint",
"test": "playwright test",
"test:e2e": "playwright test", "test:e2e": "playwright test",
"test:unit": "jest" "test:unit": "jest"
}, },
+3 -15
View File
@@ -50,21 +50,9 @@ const config: PlaywrightTestConfig = {
{ {
name: 'chromium', name: 'chromium',
use: { use: {
...devices['Desktop Chrome'], browserName: 'chromium',
}, viewport: { width: 1920, height: 1080 },
}, actionTimeout: 5 * 1000,
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
}, },
}, },