Skip to content

Commit bf55ec9

Browse files
authored
test: update assertion after 5c606dc (#155)
1 parent 5c606dc commit bf55ec9

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)