First url-changing click-event doesn't work in Azure pipeline #28706
Unanswered
VinuelMancent
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi together,
I have a weird behaviour using cypress e2e tests in my vue project.
My page has two kind of links: Most elements simply use the html a href="..." way, but a table of mine uses and emit causing the parent view to call a router.push(url).
In Cypress, I try testing if changing the links works. And locally on my machine, everything works great. But when running the tests in Azure CI, the first time I click on an element changing url via emitting, it doesn't work.
As you can see, the 2nd test clicks on an element (which i checked also exists and gets rendered when running in azure), but a click simply doesn't do anything. But when i do the following:
it works. The only change is, that the test before also does a click on an element chaning url via emits. Again, if I would do an assertion in the first test if the url changed it would fail.
On the other hand, changing links via clicking on a a href="..." element works all the time
Hope any of you has a solution for my problem. Thanks!
Edit:
This workaround seems to make it work. Still, its not a nice approach
Beta Was this translation helpful? Give feedback.
All reactions