replace Spectron by Playwright

This commit is contained in:
Maxime GRIS
2021-11-13 19:55:50 +01:00
parent 6463897e8f
commit 558c646e2f
15 changed files with 1479 additions and 1386 deletions

View File

@@ -13,7 +13,7 @@
"electron",
"nodejs",
"typescript",
"spectron",
"playwright",
"eslint",
"sass",
"windows",
@@ -36,7 +36,8 @@
"electron:build": "npm run build:prod && electron-builder build --publish=never",
"test": "ng test --watch=false",
"test:watch": "ng test",
"e2e": "npm run build:prod && cross-env TS_NODE_PROJECT='e2e/tsconfig.e2e.json' mocha --timeout 300000 --require ts-node/register e2e/**/*.e2e.ts",
"e2e": "npm run build:prod && playwright test -c e2e/playwright.config.ts e2e/",
"e2e:show-trace": "playwright show-trace e2e/tracing/trace.zip",
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"lint": "ng lint"
},
@@ -49,7 +50,6 @@
"@angular/platform-browser": "12.1.2",
"@angular/platform-browser-dynamic": "12.1.2",
"@angular/router": "12.1.2",
"@electron/remote": "1.2.0",
"rxjs": "~6.6.0",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
@@ -66,17 +66,15 @@
"@angular/compiler-cli": "12.1.2",
"@ngx-translate/core": "13.0.0",
"@ngx-translate/http-loader": "6.0.0",
"@playwright/test": "1.16.3",
"@types/jasmine": "3.8.1",
"@types/jasminewd2": "2.0.10",
"@types/mocha": "8.2.3",
"@types/node": "16.3.3",
"@typescript-eslint/eslint-plugin": "4.28.3",
"@typescript-eslint/parser": "4.28.3",
"chai": "4.3.4",
"conventional-changelog-cli": "2.1.1",
"cross-env": "7.0.3",
"electron": "13.3.0",
"electron-builder": "22.11.9",
"electron": "15.3.1",
"electron-builder": "22.13.1",
"electron-reload": "1.5.0",
"eslint": "7.30.0",
"eslint-plugin-import": "2.23.4",
@@ -89,10 +87,9 @@
"karma-electron": "7.0.0",
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0",
"mocha": "9.0.2",
"nan": "2.14.2",
"npm-run-all": "4.1.5",
"spectron": "15.0.0",
"playwright": "1.16.3",
"ts-node": "10.1.0",
"typescript": "~4.2.0",
"wait-on": "5.0.1",