From eaff9df5eb9bb3e2033225816a0526b80dd8f6cc Mon Sep 17 00:00:00 2001 From: pdelfan Date: Fri, 24 Apr 2026 16:17:15 -0700 Subject: [PATCH] test: check if profiles are visible to unathenticate users --- src/webapp/e2e/profile-public-access.spec.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/webapp/e2e/profile-public-access.spec.ts diff --git a/src/webapp/e2e/profile-public-access.spec.ts b/src/webapp/e2e/profile-public-access.spec.ts new file mode 100644 index 00000000..10906558 --- /dev/null +++ b/src/webapp/e2e/profile-public-access.spec.ts @@ -0,0 +1,13 @@ +import { test, expect } from '@playwright/test'; + +test('unauthenticated user can access a profile page', async ({ page }) => { + const response = await page.goto('/profile/alice.bsky.social'); + + expect(response?.status()).toBe(200); + + // Should stay on the profile page and NOT redirect to /login + await expect(page).toHaveURL(/\/profile\/alice\.bsky\.social/); + + // Profile header should be visible + await expect(page.getByText('@alice.bsky.social')).toBeVisible(); +}); -- 2.51.2