test(e2e): assert signed-out redirect on /activity

This commit is contained in:
Abhimanyu Saharan
2026-02-12 11:21:53 +00:00
parent 7903dc129c
commit 10f12bd4a0

View File

@@ -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", () => {