adorable-smartphone-87280
07/14/2022, 5:04 PMcypress open
command. Those other flags merely instruct the app to take the next steps of opening the browser window. The main app window will always open, in case you want to stop testing or switch to another app. This is actually preferred IMO, since I want to use a single "open" script with default behavior but retain the option to change browsers without having to specifically write another open script (or type out a whole new open command) just to switch browsers.freezing-piano-2792
07/14/2022, 6:05 PMfreezing-piano-2792
07/14/2022, 6:05 PMadorable-smartphone-87280
07/14/2022, 6:28 PMadorable-smartphone-87280
07/14/2022, 6:30 PMastonishing-salesclerk-68668
07/14/2022, 7:27 PMcy.login
command which hits our auth endpoint and does localStorage.setItem("access_token")
. When I do auth in our app via this command in the beforeEach
block of some tests, it will sometimes lose that auth during execution of the same spec. The really weird thing, is if I move the offending test earlier in the same spec, everything is fine. Is this a known "gotcha"?adorable-smartphone-87280
07/14/2022, 7:38 PMastonishing-salesclerk-68668
07/14/2022, 7:48 PMadorable-smartphone-87280
07/14/2022, 8:09 PMmelodic-dawn-73228
07/15/2022, 2:15 PMmagnificent-judge-17148
07/15/2022, 2:32 PMorange-answer-13291
07/17/2022, 12:04 AMmagnificent-judge-17148
07/18/2022, 4:51 AMorange-answer-13291
07/18/2022, 8:32 AMmagnificent-judge-17148
07/18/2022, 10:15 AMrhythmic-guitar-55789
07/18/2022, 11:06 AMmillions-portugal-57577
07/18/2022, 12:03 PMfamous-restaurant-30435
07/18/2022, 12:09 PMmillions-portugal-57577
07/18/2022, 12:16 PMbrainy-account-24503
07/18/2022, 1:16 PMcy.document()
in my spec gets the document from the first iframe. Anyone knows what i'm doing wrong?
injection looks like this:
document.getElementsByTagName('head')[0]?.appendChild(myScript);
adorable-stone-42197
07/18/2022, 1:18 PMbrainy-account-24503
07/18/2022, 1:45 PMdocument
in the spec file and not cy.document()
i get the correct document reference 🙂famous-restaurant-30435
07/18/2022, 1:46 PMtall-appointment-66718
07/18/2022, 4:34 PMastonishing-salesclerk-68668
07/18/2022, 5:00 PMsome-piano-59562
07/18/2022, 6:31 PMmammoth-army-44584
07/18/2022, 7:02 PMcreamy-grass-29728
07/18/2022, 11:36 PMbland-salesclerk-62828
07/19/2022, 7:59 AMcuddly-orange-98458
07/19/2022, 11:37 AM