stale-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?