Skip to content

Commit 94d51ca

Browse files
authored
Merge branch 'main' into fix/ssr-repo
2 parents 35afdfe + bf55ec9 commit 94d51ca

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/url-compatibility.spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,11 @@ test.describe('npmjs.com URL Compatibility', () => {
101101
await expect(page.getByRole('heading', { name: 'Packages' })).toBeVisible()
102102
})
103103

104-
test('/org/nonexistent-org-12345 → empty org handling', async ({ page, goto }) => {
104+
test('/org/nonexistent-org-12345 → 404 handling', async ({ page, goto }) => {
105105
await goto('/org/nonexistent-org-12345', { waitUntil: 'domcontentloaded' })
106106

107-
// Should show org name in header
108-
await expect(page.locator('h1')).toContainText('@nonexistent-org-12345')
109-
// Should show empty state message
110-
await expect(page.getByText('No public packages found for')).toBeVisible()
107+
// Should show 404 error page
108+
await expect(page.locator('h1')).toContainText('Organization not found')
111109
})
112110
})
113111

0 commit comments

Comments
 (0)