diff options
author | Raphael <mail@raphaelkabo.com> | 2025-05-28 18:58:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-28 18:58:46 +0100 |
commit | 3d84891118f8a81af3ddb978af9b3f8b02fd5d65 (patch) | |
tree | 0a8d344e331a0551b73435bbbb3919107737f69f /cypress | |
parent | 6f0b7a44b995b6b66baf42a9369182fc05a90b34 (diff) | |
parent | 4664b6968fdcaca54268d60f400da02364213f05 (diff) |
Merge branch 'main' into main
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/event.cy.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cypress/e2e/event.cy.ts b/cypress/e2e/event.cy.ts index eeaa629..5d77fc7 100644 --- a/cypress/e2e/event.cy.ts +++ b/cypress/e2e/event.cy.ts @@ -304,9 +304,13 @@ describe("Events", () => { cy.clearAllLocalStorage(); localStorage.setItem("editTokens", "invalid"); cy.visit(`/${this.eventID}`).then(() => { - expect(localStorage.getItem("editTokens")).to.not.include( - "invalid", - ); + const editTokens = localStorage.getItem("editTokens"); + if (editTokens !== null) { + expect(editTokens).to.not.include("invalid"); + } else { + // If it's null, the invalid token was successfully removed + expect(editTokens).to.be.null; + } }); }); }); |