Skip to content

Commit

Permalink
cypress: Replace obsolete Cypress.Cookies.preserveOnce
Browse files Browse the repository at this point in the history
  • Loading branch information
mamedin committed Sep 27, 2023
1 parent eb572c9 commit 5fa4fcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/e2e/finding_aid.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ describe(

beforeEach(() => {
// Preserve authentication cookies between tests
Cypress.Cookies.preserveOnce('atom_authenticated', 'symfony')
cy.session('unique_identifier', cy.login, {
validate () {
cy.getCookies().should('have.length', 2)
},
})
})

it('Disables finding aids', () => {
Expand Down

0 comments on commit 5fa4fcc

Please sign in to comment.