summaryrefslogtreecommitdiff
path: root/cypress/e2e/event.cy.ts
diff options
context:
space:
mode:
authorRaphael Kabo <mail@raphaelkabo.com>2025-05-28 18:32:47 +0100
committerRaphael Kabo <mail@raphaelkabo.com>2025-05-28 18:32:47 +0100
commita6f8ec770d06ce33042ed3f222cba786897e0233 (patch)
treea060e72668de41fcbeae5e891ee86b096b096f26 /cypress/e2e/event.cy.ts
parent08fa2f616c90e59066d0308097c65c424b5b4a88 (diff)
parentfd637b405c8784a07dabd54b10fda98ad9f4a4ad (diff)
Merge remote-tracking branch 'origin/main' into clearer-editing-mode
Diffstat (limited to 'cypress/e2e/event.cy.ts')
-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;
+ }
});
});
});