Improve playwright setup

This commit is contained in:
Matthias 2024-04-08 07:33:31 +02:00
parent 03d77ece79
commit faf03f7738
2 changed files with 8 additions and 3 deletions

View File

@ -14,7 +14,9 @@
"cy:run": "cypress run",
"cy:open-ct": "cypress open-ct",
"cy:run-ct": "cypress run --component",
"test:e2e": "yarn playwright test --project=chromium"
"test:e2e": "yarn playwright test",
"test:e2e-chromium": "yarn playwright test --project=chromium",
"test:e2e-msedge": "yarn playwright test --project=msedge"
},
"dependencies": {
"@noction/vue-draggable-grid": "1.9.16",

View File

@ -34,9 +34,12 @@ export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
},
{
name: 'msedge',
use: { ...devices['Desktop Edge'], channel: 'msedge' }, // or "msedge-beta" or 'msedge-dev'
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },