Skip to content

Commit 78c16a7

Browse files
committed
tests
1 parent bd6bec3 commit 78c16a7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/e2e/hydration.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ test.describe('Hydration', () => {
113113
})
114114
}
115115
})
116+
117+
test('user packages page with npm search provider', async ({ page, goto, hydrationErrors }) => {
118+
await injectLocalStorage(page, {
119+
'npmx-settings': JSON.stringify({ searchProvider: 'npm' }),
120+
})
121+
122+
await goto('/~qwerzl', { waitUntil: 'hydration' })
123+
124+
expect(hydrationErrors).toEqual([])
125+
})
116126
})
117127

118128
async function injectLocalStorage(page: Page, entries: Record<string, string>) {

0 commit comments

Comments
 (0)