You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have problem in running cypress tests on CI/ Gitlab, I am trying to run vue application using command: "ui":cypress run --record --key "key" --browser chrome* in package.json, and then in yml file i ran like this:
test_e2e:
stage: test
script:
- npm ci
- echo "VUE_APP_API_URL=$DEV_VUE_APP_API_URL" | tee -a .env.production > /dev/null
- echo "BASE_URL=http://localhost:8080" | tee -a .env.production > /dev/null
- npm run serve &
- npm run ui
when I try to run this, tests where user try to login in to app tests are failed, but tests where is only navigation to application as validation of text in /register or /login before login are passed. There is also written that server is on on localhost:8080
Additionaly info:
In cypress dashboard in the picture i can see that user can't be log in to application although i tried to wait for it 200 s.
Locally when I run "npm run ui" app is properly built and tests are passed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
app framework - vue
CI env: GITLAB
Hello, I have problem in running cypress tests on CI/ Gitlab, I am trying to run vue application using command: "ui": cypress run --record --key "key" --browser chrome* in package.json, and then in yml file i ran like this:
before scripts:
test_e2e:
stage: test
script:
- npm ci
- echo "VUE_APP_API_URL=$DEV_VUE_APP_API_URL" | tee -a .env.production > /dev/null
- echo "BASE_URL=http://localhost:8080" | tee -a .env.production > /dev/null
- npm run serve &
- npm run ui
when I try to run this, tests where user try to login in to app tests are failed, but tests where is only navigation to application as validation of text in /register or /login before login are passed. There is also written that server is on on localhost:8080
Additionaly info:
In cypress dashboard in the picture i can see that user can't be log in to application although i tried to wait for it 200 s.
Locally when I run "npm run ui" app is properly built and tests are passed.
Beta Was this translation helpful? Give feedback.
All reactions