diff options
author | Ferdinand Thiessen <rpm@fthiessen.de> | 2022-06-01 22:58:06 +0300 |
---|---|---|
committer | Ferdinand Thiessen <rpm@fthiessen.de> | 2022-06-05 13:39:56 +0300 |
commit | 324ebe92f8c52d1ac2fe584f1f2fdacae0fcc42d (patch) | |
tree | 978e6bfef26529ccd672a7c91c57ad9d37ae52db /package.json | |
parent | b9fc925f45f9c66cbe408ecb774215d9745e61f4 (diff) |
Fix cypress scripts for local run + Add documentation
Fix the scripts for local cypress runs,
they need to be run within the `npm run` environment,
as the nextcloud webpack config requires the `npm_package_name`
variable to be set.
Also a up-to-date nextcloud instance is required for testing
text at the current git head, so updated the dockerfile
and docker-compose files to create a nextcloud image from current git head.
Additionally updated the tests to use cypress 10.x and
added missing documentation on how to run the cypress tests.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json index 63f6e7a82..6e60884d1 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css", "stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix", "test": "NODE_ENV=test jest", + "test:cypress": "cd cypress && ./runLocal.sh run", "test:coverage": "NODE_ENV=test jest --coverage" }, "browserslist": [ @@ -98,7 +99,7 @@ "devDependencies": { "@babel/eslint-parser": "^7.18.2", "@cypress/browserify-preprocessor": "^3.0.2", - "@cypress/webpack-preprocessor": "^5.11.1", + "@cypress/webpack-preprocessor": "^5.12.0", "@nextcloud/babel-config": "^1.0.0", "@nextcloud/browserslist-config": "^2.2.0", "@nextcloud/eslint-config": "^8.0.0", @@ -107,7 +108,7 @@ "@nextcloud/webpack-vue-config": "^5.1.0", "@vue/test-utils": "^1.3.0", "@vue/vue2-jest": "^27.0.0", - "cypress": "^9.7.0", + "cypress": "^10.0.2", "cypress-file-upload": "^5.0.8", "eslint": "^8.17.0", "eslint-config-standard": "^17.0.0", |