From 9b50ff7920629f1125e228aa10fb0c2a677d9f72 Mon Sep 17 00:00:00 2001 From: Grace Kind Date: Fri, 31 Jul 2026 19:15:25 -0500 Subject: [PATCH] Update e2e tests --- tests/e2e/specs/flows/followUser.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/e2e/specs/flows/followUser.test.js b/tests/e2e/specs/flows/followUser.test.js index 0b09b944..5578de9d 100644 --- a/tests/e2e/specs/flows/followUser.test.js +++ b/tests/e2e/specs/flows/followUser.test.js @@ -108,6 +108,11 @@ test.describe("Follow/Unfollow flow", () => { // Click the follow button to unfollow await profileView.locator('[data-testid="follow-button"]').click(); + // Confirm the unfollow prompt + const confirmDialog = page.locator('[data-testid="confirm-modal"]'); + await expect(confirmDialog).toBeVisible({ timeout: 10000 }); + await confirmDialog.locator('[data-testid="modal-confirm-button"]').click(); + // Verify the button changes back to the follow state await expect( profileView.locator( -- 2.51.2