Add e2e test for app with cypress

This commit is contained in:
Marcus Eide
2020-03-27 14:07:26 +01:00
parent a17f237b75
commit 990671df9b
6 changed files with 575 additions and 56 deletions
+12 -2
View File
@@ -28,7 +28,11 @@
"start": "backstage-cli app:serve",
"build": "backstage-cli app:build",
"test": "backstage-cli test",
"lint": "backstage-cli lint"
"test:e2e": "start-server-and-test start http://localhost:3000 cy:dev",
"test:e2e:ci": "start-server-and-test start http://localhost:3000 cy:run",
"lint": "backstage-cli lint",
"cy:dev": "cypress open",
"cy:run": "cypress run"
},
"browserslist": {
"production": [
@@ -42,5 +46,11 @@
"last 1 safari version"
]
},
"license": "Apache-2.0"
"license": "Apache-2.0",
"devDependencies": {
"@testing-library/cypress": "^6.0.0",
"@types/jquery": "^3.3.34",
"cypress": "^4.2.0",
"start-server-and-test": "^1.10.11"
}
}