https://cypress.io logo
export function singlecLogin() { cy.dataSessi...
# e2e-testing
a
export function singlecLogin() { cy.dataSession({ name: 'shared User', setup: () => cy.login(), validate: (x) => x === 'a', shareAcrossSpecs: true, }) } i try like this and got cy.task('dataSession:save') failed with the following error: > Converting circular structure to JSON --> starting at object with constructor 'Object' --- property 'window' closes the circle