From b8eb3c854b6b171780249c74e320e876f0a1d00f Mon Sep 17 00:00:00 2001 From: Grace Kind Date: Mon, 24 Aug 2026 15:52:54 -0500 Subject: [PATCH] Update notification test --- .../specs/views/settingsNotifications.view.test.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/e2e/specs/views/settingsNotifications.view.test.js b/tests/e2e/specs/views/settingsNotifications.view.test.js index 57de9a0a..2999c411 100644 --- a/tests/e2e/specs/views/settingsNotifications.view.test.js +++ b/tests/e2e/specs/views/settingsNotifications.view.test.js @@ -427,7 +427,7 @@ test.describe("Settings > Notifications view", () => { ).toHaveAttribute("checked", ""); }); - test("the re-authorize button restarts the enable flow", async ({ + test("disabling and reenabling restarts the enable flow", async ({ page, }) => { const mockServer = new MockServer(); @@ -442,9 +442,15 @@ test.describe("Settings > Notifications view", () => { }); await page.goto("/settings/notifications"); - await page - .locator('[data-testid="push-reauth-button"]') - .click({ timeout: 10000 }); + await expect( + page.locator('[data-testid="push-reauth-warning"]'), + ).toBeVisible({ timeout: 10000 }); + + const toggle = page.locator('[data-testid="push-notifications-toggle"]'); + await toggle.click(); + await expect(toggle).not.toHaveAttribute("checked", ""); + + await toggle.click(); await page .locator( '[data-testid="choice-modal"] [data-testid="modal-choice-without-previews"]', -- 2.51.2