mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
test(e2e): adjust playwright configuration
This commit is contained in:
1 parent
07a028dff8
commit
1afabc671d
4 files changed
+7
-4
No files matched your search
@@ -56,6 +56,7 @@ package-lock.json
|
||||
/e2e/*.js
|
||||
!/e2e/protractor.conf.js
|
||||
/e2e/*.map
|
||||
/e2e/db
|
||||
|
||||
# System Files
|
||||
.DS_Store
|
||||
|
||||
@@ -21,7 +21,10 @@
|
||||
"!tsconfig.*.json",
|
||||
"!tslint.json",
|
||||
"!*.png",
|
||||
"!coverage"
|
||||
"!coverage",
|
||||
"!e2e",
|
||||
"!playwright-report",
|
||||
"!test-report"
|
||||
],
|
||||
"win": {
|
||||
"icon": "dist/assets/icons",
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
"electron:build:windows": "npm run build:prod && electron-builder build -w",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"e2e": "npm run build:electron && npx playwright test -c e2e/playwright.config.ts e2e/",
|
||||
"e2e": "npm run build:electron && npx playwright test -c playwright.config.ts",
|
||||
"e2e:debug": "npm run build:electron && PWDEBUG=1 npx playwright test -c e2e/playwright.config.ts e2e/ /",
|
||||
"e2e:html-report": "npm run build:electron && npm run e2e -- --reporter=html",
|
||||
"e2e:show-report": "npx playwright show-report",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devices, PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
testDir: '.',
|
||||
testDir: './e2e',
|
||||
maxFailures: 2,
|
||||
projects: [
|
||||
{
|
||||
@@ -15,7 +15,6 @@ const config: PlaywrightTestConfig = {
|
||||
name: 'firefox',
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
ignoreHTTPSErrors: true,
|
||||
serviceWorkers: 'block',
|
||||
},
|
||||
},
|
||||
Reference in new issue
Block a user