Add Playwright to scripts

This commit is contained in:
Matthias 2023-11-19 15:35:08 +01:00
parent e5de9e5d9e
commit a50a1d8d81
2 changed files with 8 additions and 7 deletions

View File

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

View File

@ -24,7 +24,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',
baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
@ -69,9 +69,9 @@ export default defineConfig({
],
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
webServer: {
command: 'npm run start',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
});