rough-night-37887
10/12/2022, 8:02 AMmysterious-belgium-25713
10/12/2022, 8:12 AMrough-night-37887
10/12/2022, 8:13 AMrough-night-37887
10/12/2022, 8:14 AMfreezing-piano-2792
10/12/2022, 8:23 AMrough-night-37887
10/12/2022, 8:31 AMrough-night-37887
10/12/2022, 8:31 AMfreezing-piano-2792
10/12/2022, 8:34 AMmysterious-belgium-25713
10/12/2022, 8:38 AMrough-night-37887
10/12/2022, 8:40 AMfreezing-piano-2792
10/12/2022, 8:53 AMfreezing-piano-2792
10/12/2022, 8:53 AMmysterious-belgium-25713
10/12/2022, 9:03 AMmysterious-belgium-25713
10/12/2022, 9:05 AMcold-van-45410
10/12/2022, 12:03 PMmagnificent-finland-58048
10/12/2022, 12:37 PMmagnificent-finland-58048
10/12/2022, 12:38 PMimportant-fish-21193
10/12/2022, 1:05 PMvalidate
"important-fish-21193
10/12/2022, 1:07 PMimportant-fish-21193
10/12/2022, 1:07 PMimportant-fish-21193
10/12/2022, 1:08 PMstale-optician-85950
10/12/2022, 1:14 PMcacheAcrossSpecs: true,
not cacheAcrossSpec:true
https://docs.cypress.io/api/commands/session#Caching-session-data-across-specsimportant-fish-21193
10/12/2022, 1:16 PMstale-optician-85950
10/12/2022, 1:21 PMcy.session(name, () => {
cy.request({
method: 'POST',
url: '/login',
body: { name, password: 's3cr3t' },
}).then(({ body }) => {
window.localStorage.setItem('authToken', body.token)
})
}, {
validate() {
cy.visit('/user_profile')
cy.contains(`Hello ${name}`)
},
cacheAcrossSpecs: true,
}
When I hover over cacheAcrossSpecs
in that documentation code locally I get a correct reference. Do you?stale-optician-85950
10/12/2022, 1:23 PMstale-optician-85950
10/12/2022, 1:46 PMcacheAcrossSpecs
was added in Cypress version 10.9.0 https://docs.cypress.io/guides/references/changelog#10-9-0 make sure you are using at least this version.important-fish-21193
10/12/2022, 2:07 PMimportant-fish-21193
10/12/2022, 2:21 PMstale-optician-85950
10/12/2022, 2:22 PMlimited-barista-33480
10/12/2022, 3:28 PM