test: Fixing cypress tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mangiang 2021-11-14 15:57:22 -05:00
parent a6665eb0b3
commit d66742323f
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,8 @@
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cypress": "9.0.0", "cypress": "9.0.0",
"start-server-and-test": "^1.14.0", "start-server-and-test": "^1.14.0",
"typescript": "^4.1.2" "typescript": "^4.1.2",
"wait-on": "^6.0.0"
}, },
"dependencies": { "dependencies": {
"@emotion/react": "^11.4.1", "@emotion/react": "^11.4.1",
@ -38,9 +39,8 @@
"test:jest": "react-scripts test", "test:jest": "react-scripts test",
"cy:start:app": "cross-env BROWSER=none react-scripts -r @cypress/instrument-cra start", "cy:start:app": "cross-env BROWSER=none react-scripts -r @cypress/instrument-cra start",
"cy:start:wait": "start-server-and-test cy:start:app http://localhost:3000", "cy:start:wait": "start-server-and-test cy:start:app http://localhost:3000",
"cy:start:wait:ci": "start-server-and-test cy:start:app http://frontend:3000",
"cy:open": "yarn run cy:start:wait -- \"cypress open\"", "cy:open": "yarn run cy:start:wait -- \"cypress open\"",
"cy:run": "yarn run cy:start:wait:ci -- \"cypress run\"", "cy:run": "yarn run wait-on http-get://frontend:3000 && \"cypress run\"",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {

View File

@ -13195,7 +13195,7 @@ w3c-xmlserializer@^2.0.0:
dependencies: dependencies:
xml-name-validator "^3.0.0" xml-name-validator "^3.0.0"
wait-on@6.0.0: wait-on@6.0.0, wait-on@^6.0.0:
version "6.0.0" version "6.0.0"
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-6.0.0.tgz#7e9bf8e3d7fe2daecbb7a570ac8ca41e9311c7e7" resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-6.0.0.tgz#7e9bf8e3d7fe2daecbb7a570ac8ca41e9311c7e7"
integrity sha512-tnUJr9p5r+bEYXPUdRseolmz5XqJTTj98JgOsfBn7Oz2dxfE2g3zw1jE+Mo8lopM3j3et/Mq1yW7kKX6qw7RVw== integrity sha512-tnUJr9p5r+bEYXPUdRseolmz5XqJTTj98JgOsfBn7Oz2dxfE2g3zw1jE+Mo8lopM3j3et/Mq1yW7kKX6qw7RVw==