Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions tests/url-compatibility.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@ test.describe('npmjs.com URL Compatibility', () => {
await expect(page.getByRole('heading', { name: 'Packages' })).toBeVisible()
})

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

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

Expand Down