From 10f12bd4a00ee929cce48d4edd3e5a82fb69989e Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Thu, 12 Feb 2026 11:21:53 +0000 Subject: [PATCH] test(e2e): assert signed-out redirect on /activity --- frontend/cypress/e2e/activity_feed.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/e2e/activity_feed.cy.ts b/frontend/cypress/e2e/activity_feed.cy.ts index 8d2ac86b..3e53c99a 100644 --- a/frontend/cypress/e2e/activity_feed.cy.ts +++ b/frontend/cypress/e2e/activity_feed.cy.ts @@ -19,10 +19,10 @@ describe("/activity feed", () => { cy.contains(/live feed/i).should("be.visible"); } - it("auth negative: signed-out user is prompted to sign in", () => { + it("auth negative: signed-out user is redirected to sign-in", () => { + // SignedOutPanel runs in redirect mode on this page. cy.visit("/activity"); - cy.contains(/sign in to view the feed/i).should("be.visible"); - cy.get('[data-testid="activity-signin"]').should("be.visible"); + cy.location("pathname", { timeout: 20_000 }).should("match", /\/sign-in/); }); it("happy path: renders feed items from the activity endpoint", () => {