commit cef441f9c7ec1f149379d433e6c99fe0ad489818
parent dbfbbc3ae44d14618565dcd17b622004143069e1
Author: Marcel <mtrnord1@gmail.com>
Date: Sat, 13 Jun 2020 21:06:11 +0200
Fix firefox tests
Took 3 minutes
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
@@ -36,7 +36,7 @@ jobs:
- uses: cypress-io/github-action@v1
with:
browser: firefox
- command: npm run test
+ command: npm run test:firefox
# after the test run completes
# store videos and any screenshots
# NOTE: screenshots will be generated only if E2E test failed
diff --git a/package.json b/package.json
@@ -1,14 +1,17 @@
{
"private": true,
"scripts": {
- "test": "start-server-and-test start http-get://localhost:8888 cy:run",
+ "test": "yarn run test:chrome",
+ "test:chrome": "start-server-and-test start http-get://localhost:8888 cy:run",
+ "test:firefox": "start-server-and-test start http-get://localhost:8888 cy:run:firefox",
"build:dev": "webpack --mode development",
"build": "webpack --mode production",
"start:dev": "webpack-dev-server --mode development",
"start": "yarn run start:dev",
"start:prod": "webpack-dev-server --mode production",
"cy:open": "cypress open",
- "cy:run": "cypress run --browser chrome --record --key 99194b81-775d-4e98-9bac-8f2cc12bc62e"
+ "cy:run": "cypress run --browser chrome --record --key 99194b81-775d-4e98-9bac-8f2cc12bc62e",
+ "cy:run:firefox": "cypress run --browser firefox --record --key 99194b81-775d-4e98-9bac-8f2cc12bc62e"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "^1.3.1",