green-forest-29016
06/10/2022, 4:29 PMgreen-lifeguard-11615
06/10/2022, 5:21 PMorange-egg-80225
06/10/2022, 6:13 PMechoing-actor-29720
06/10/2022, 7:56 PMcalm-sundown-94839
06/10/2022, 9:22 PMcalm-sundown-94839
06/10/2022, 9:25 PMcalm-sundown-94839
06/10/2022, 9:29 PMgray-kilobyte-89541
06/10/2022, 11:06 PMincalculable-fall-95048
06/11/2022, 12:03 AMboundless-answer-75119
06/11/2022, 10:12 AMfresh-doctor-14925
06/11/2022, 1:45 PM.should(“contain”, message)
. Unlike .contains()
, that will retry the `.get()`until the condition is met
Also, I think your visibility check is superfluous. get()
has an implicit visibility check and will fail if the element is not visibleboundless-answer-75119
06/11/2022, 1:48 PMfresh-doctor-14925
06/11/2022, 1:52 PMcypress open
you can click on the failed line in the run output. That gives some more context in the developer console.
Other than that, it’s probably a feature request on GitHubbrash-tiger-52405
06/11/2022, 4:30 PMmysterious-sandwich-43667
06/11/2022, 6:32 PMgreen-forest-29016
06/11/2022, 6:39 PMpowerful-apple-75460
06/11/2022, 6:57 PMincalculable-fall-95048
06/11/2022, 8:15 PM./node_modules/.bin/cypress open
open the app and after a few seconds it crashesgray-tiger-73550
06/12/2022, 2:27 PMpolite-diamond-19684
06/12/2022, 3:47 PMpolite-diamond-19684
06/12/2022, 3:49 PMcy.wrap(spy).should('have.been.calledOn')
But I'm very new to cypress so take it with a grain of salt
There's also 'be.calledOn'
. I'm not sure what the difference is.polite-diamond-19684
06/12/2022, 3:51 PMpolite-diamond-19684
06/12/2022, 4:09 PMgray-tiger-73550
06/12/2022, 6:03 PMgray-tiger-73550
06/12/2022, 6:03 PMchilly-queen-22182
06/12/2022, 9:15 PMgray-kilobyte-89541
06/12/2022, 11:19 PMcy.contains
retries toogray-kilobyte-89541
06/12/2022, 11:19 PMworried-baker-31345
06/12/2022, 11:34 PMfresh-doctor-14925
06/13/2022, 7:00 AM.get()
to yield the element again and then retry. Is that incorrect?