stocky-dream-36427
05/12/2021, 1:00 AMlimited-keyboard-75773
05/12/2021, 1:01 AMstocky-dream-36427
05/12/2021, 1:01 AMstocky-dream-36427
05/12/2021, 1:01 AMmany-jackal-86011
05/13/2021, 11:21 AMmany-jackal-86011
05/13/2021, 11:22 AMstocky-dream-36427
05/13/2021, 10:47 PMuser
05/19/2021, 12:16 AMgreen-byte-3172
05/19/2021, 7:13 PMsparse-jackal-93514
05/19/2021, 7:16 PMbulky-sundown-74498
05/19/2021, 7:18 PMcalm-megabyte-68237
05/19/2021, 7:20 PMcalm-megabyte-68237
05/19/2021, 7:21 PMstocky-dream-36427
05/19/2021, 7:51 PMstocky-dream-36427
05/19/2021, 7:51 PMbumpy-toddler-47155
05/19/2021, 7:57 PMuser
05/19/2021, 11:37 PMuser
05/19/2021, 11:38 PMstocky-dream-36427
05/19/2021, 11:49 PMstocky-dream-36427
05/19/2021, 11:50 PMstocky-dream-36427
05/19/2021, 11:50 PMstocky-dream-36427
05/19/2021, 11:51 PMuser
05/20/2021, 1:24 AMuser
05/20/2021, 1:25 AMstocky-dream-36427
05/20/2021, 1:59 AMstocky-dream-36427
05/20/2021, 2:00 AMuser
05/20/2021, 2:03 AMfuture-journalist-95278
05/20/2021, 3:11 AMjs
Cypress.Commands.add('login', () => {
const data = JSON.stringify({
username: Cypress.env('TEST_USERNAME'),
password: Cypress.env('TEST_USER_PASSWORD'),
})
cy.window().then((window) => {
window.nuxtApp.$auth.loginWith('login', data)
})
})
What I don't understand is this is giving me a Xhr
request with canceled: true
. I read that canceled: true
occurs because I am attempting a URL change after calling my login command like: js
cy.login()
cy.visit('http://localhost:3000/settings/info')
Should I be waiting for the login command to finish? I tried adding an alias like: js
cy.login().as('login')
cy.wait('@login')
but Cypress didn't seem to like that...stocky-dream-36427
05/20/2021, 7:39 AMwooden-advantage-64510
05/20/2021, 1:02 PM