modern-dawn-86006
01/09/2023, 8:56 PMmodern-dawn-86006
01/09/2023, 9:02 PMmodern-dawn-86006
01/09/2023, 9:07 PMmodern-dawn-86006
01/09/2023, 9:11 PMmodern-dawn-86006
01/09/2023, 9:19 PMmysterious-psychiatrist-29678
01/09/2023, 11:24 PMbland-machine-99046
01/10/2023, 8:58 AMstraight-microphone-66008
01/10/2023, 9:04 AMbland-machine-99046
01/10/2023, 10:02 AMdry-portugal-25841
01/10/2023, 10:41 AMADE/AEROTRADE
should be ADE\AEROTRADE
mysterious-psychiatrist-29678
01/10/2023, 11:05 AMhappy-dinner-13480
01/10/2023, 11:40 AMwebsocket
in Cypress?dazzling-crowd-57204
01/10/2023, 12:00 PMstraight-microphone-66008
01/10/2023, 1:56 PMmodern-dawn-86006
01/10/2023, 2:15 PMmodern-dawn-86006
01/10/2023, 2:36 PMfreezing-scientist-25758
01/10/2023, 4:25 PMcy.clearLocalStorage();
?rich-mechanic-52238
01/10/2023, 6:02 PMmodern-dawn-86006
01/10/2023, 6:38 PMrich-mechanic-52238
01/10/2023, 7:49 PMrich-mechanic-52238
01/10/2023, 7:50 PMlate-planet-4481
01/10/2023, 7:50 PMjs
cy.visit('/')
cy.location('pathname').as('pathname')
cy.visit('guest-services')
cy.get('@pathname').should('equal', '/')
Now take a look at the attached image. The alias is reassigned after the fact when the pathname changes. This happens every time you directly chain to an alias, so page elements will affect this too. This behavior does not exist in Cypress 11.2.modern-dawn-86006
01/10/2023, 7:51 PMrich-mechanic-52238
01/10/2023, 8:07 PMmodern-dawn-86006
01/10/2023, 8:08 PMrich-mechanic-52238
01/10/2023, 8:08 PMmodern-dawn-86006
01/10/2023, 8:09 PMrich-mechanic-52238
01/10/2023, 8:21 PMrich-mechanic-52238
01/10/2023, 8:24 PMmodern-dawn-86006
01/10/2023, 8:29 PMfailOnStatusCode: false
like this
cy.request('www.someurl.com', {failOnStatusCode: false})