summaryrefslogtreecommitdiff
path: root/cypress
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2025-05-28 18:00:35 +0100
committerGitHub <noreply@github.com>2025-05-28 18:00:35 +0100
commitbde9b408342f56833cf0a514488365189083f312 (patch)
treee20a4f074704a2f5ede5ebd05b4f4ad949cd8205 /cypress
parent69f75005303d634b9208c23068655385734f4d3a (diff)
parentfb85d79dd2333cd6e0982e5ee0fdc1070ff99889 (diff)
Merge pull request #198 from dinoue/feature/localization-again
Localization, again
Diffstat (limited to 'cypress')
-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;
+ }
});
});
});