test: use cypress instead of protractor

This commit is contained in:
Jovan Krunić
2022-03-23 10:14:56 +00:00
parent b95c796358
commit 0479e7cdc3
18 changed files with 659 additions and 159 deletions

View File

@@ -19,7 +19,7 @@
"run:android": "ionic capacitor run android --livereload --external",
"changelog": "conventional-changelog -p angular -i src/assets/about/CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"check-configuration": "openstapps-configuration",
"e2e": "LANGUAGE=de-DE ng e2e --no-webdriver-update",
"e2e": "ng e2e",
"docker:build": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm install && npm run build\"",
"docker:build:android": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm run build:android\"",
"docker:run:android": "sudo docker run -v $PWD:/app --privileged -v /dev/bus/usb:/dev/bus/usb --net=host -it registry.gitlab.com/openstapps/app bash -c \"npm run run:android\"",
@@ -33,7 +33,6 @@
"ng": "ng",
"postinstall": "npx jetify",
"postversion": "npm run changelog && npm run licenses",
"pree2e": "webdriver-manager clean && webdriver-manager update --gecko false --versions.chrome $(google-chrome --product-version)",
"prepublishOnly": "npm ci && npm run build",
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
@@ -42,7 +41,9 @@
"start": "ionic serve",
"start:prod": "ionic serve -- --configuration=production",
"start:external": "ionic serve --external",
"test": "ng test"
"test": "ng test",
"cypress:open": "cypress open",
"cypress:run": "cypress run"
},
"dependencies": {
"@angular/animations": "12.2.16",
@@ -124,6 +125,7 @@
"@capacitor/cli": "3.4.3",
"@capacitor/ios": "3.4.3",
"@compodoc/compodoc": "1.1.19",
"@cypress/schematic": "1.6.0",
"@ionic/angular-toolkit": "5.0.3",
"@ionic/cli": "6.18.2",
"@types/deepmerge": "2.2.0",
@@ -159,7 +161,8 @@
"protractor": "7.0.0",
"surge": "0.23.1",
"ts-node": "10.7.0",
"typescript": "4.3.5"
"typescript": "4.3.5",
"cypress": "9.5.2"
},
"cordova": {
"plugins": {},