summaryrefslogtreecommitdiff
path: root/cypress/e2e
diff options
context:
space:
mode:
authorRaphael Kabo <mail@raphaelkabo.com>2025-05-28 18:01:08 +0100
committerRaphael Kabo <mail@raphaelkabo.com>2025-05-28 18:01:08 +0100
commita5e2faf58ddd4793a5f7e3e284b023162d69cbb3 (patch)
treedf8dacfd279760f505d4b0f6dcf195a6a44a6a1b /cypress/e2e
parentbc9e983b16d9ac2d27a4458c0a87f9d11aa80c0e (diff)
parentbde9b408342f56833cf0a514488365189083f312 (diff)
Merge remote-tracking branch 'origin/main' into raphael/add-mailgun
Diffstat (limited to 'cypress/e2e')
-rw-r--r--cypress/e2e/event.cy.ts10
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;
+ }
});
});
});