diff --git a/cypress/e2e/settings/security-user-settings-tab.spec.ts b/cypress/e2e/settings/security-user-settings-tab.spec.ts index aed3eeb689..341624dee3 100644 --- a/cypress/e2e/settings/security-user-settings-tab.spec.ts +++ b/cypress/e2e/settings/security-user-settings-tab.spec.ts @@ -25,7 +25,7 @@ describe("Security user settings tab", () => { cy.stopHomeserver(homeserver); }); - describe.skip("with posthog enabled", () => { + describe("with posthog enabled", () => { beforeEach(() => { // Enable posthog cy.intercept("/config.json?cachebuster=*", (req) => { diff --git a/cypress/e2e/toasts/analytics-toast.spec.ts b/cypress/e2e/toasts/analytics-toast.spec.ts index c1c6edc902..4cc8baa838 100644 --- a/cypress/e2e/toasts/analytics-toast.spec.ts +++ b/cypress/e2e/toasts/analytics-toast.spec.ts @@ -39,7 +39,7 @@ function rejectToast(expectedTitle: string): void { }); } -describe.skip("Analytics Toast", () => { +describe("Analytics Toast", () => { let homeserver: HomeserverInstance; afterEach(() => { diff --git a/cypress/support/login.ts b/cypress/support/login.ts index b830c23f1e..5a65da1761 100644 --- a/cypress/support/login.ts +++ b/cypress/support/login.ts @@ -137,7 +137,14 @@ Cypress.Commands.add( prelaunchFn?.(); return cy - .visit("/") + .visit("/", { + onBeforeLoad(win) { + // reset notification permissions so we have predictable behaviour + // of notifications toast + // @ts-ignore allow setting default + cy.stub(win.Notification, "permission", "default"); + }, + }) .then(() => { // wait for the app to load return cy.get(".mx_MatrixChat", { timeout: 30000 });