The dreadful error "failed because the page updated" - shouldn't it do not exist in v12? #27490
Unanswered
dziedrius
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There was an issue with whooping number of comments - #7306, which states:
Given this, I was expecting that the "failed because the page updated" should be gone forever, seems it is not the case.
In current documentation, there's reference about the error:
https://docs.cypress.io/guides/references/error-messages#cy-failed-because-the-page-updated
which is really nice, because it explains in quite detail what is going on and even provides an example.
What I did not like, was this:
In my case, it was failing on seemingly simple chain:
So I thought, may be
eq
is not a safe command, may be I should do a scientific experiment to prove it.So I took example from help:
And put it to the test from help too, first as it was originally in help:
And it failed, just as described in documentation.
Then tried to mimic my situation and replaced line with click with my case:
And it passes, so it seems that
eq
is safe command after all. But it does not pass in my actual test suite, even though it was passing with cypress v11.P.S. I am sorry if this looks like a rant (it actually is a rant after first week with cypress in my life, I need to steam off), hopefully this is a good source for discussion too.
Beta Was this translation helpful? Give feedback.
All reactions