Pipeline / CI : Pages sporadically fail to load via cy.visit() #20651
Unanswered
robrich7
asked this question in
Questions and Help
Replies: 1 comment 2 replies
-
It might be something with the CI set up. Have any changes been introduced before this started happening? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
we have the problem that tests often fail because pages do not load. This problem only occurs when running Cypress via pipeline, in our case the Bitbucket pipeline. Cypress version is
9.5.1
and browser ischrome
orelectron
, it doesnt matter.Locally all tests always run cleanly.
I have defined a
BaseUrl
in thecypress.json
and change viacy.visit()
only the endpoints.So as an example:
cy.visit('/login')
Here is an example of what it looks like in the dashboard video.
As I said, if you start the tests locally via GUI or console, then there are no problems. The pages are always loaded but on each run via pipeline several tests are aborted because the pages are not loaded. Also the retries fail.
I don't understand what could be the reason for this.
Could it be because there are multiple
cy.visit()
functions during the execution of a test? So I often use different visit() commands inbeforeEach
andafterEach
. Does Cypress have trouble with this? But then it should have the same problems locally.Do you have any idea?
Beta Was this translation helpful? Give feedback.
All reactions