diff --git a/tests/e2e/explorer.spec.ts b/tests/e2e/explorer.spec.ts index cd32242..2e37aeb 100644 --- a/tests/e2e/explorer.spec.ts +++ b/tests/e2e/explorer.spec.ts @@ -90,7 +90,7 @@ test('leaves the search box holding what was typed', async ({ page }) => { (window as unknown as { writes: Array<{ from: string; to: string }> }) .writes ); - const box = page.getByRole('searchbox', { name: 'Search episodes' }); + const box = page.getByRole('searchbox', { name: 'Filter episodes' }); await box.pressSequentially('javascript'); await expect(page).toHaveURL(/#q=javascript$/); await expect(box).toHaveValue('javascript'); @@ -116,7 +116,7 @@ test('keeps the typed words when a filter changes before they apply', async ({ }); await expect(page).toHaveURL(/#q=css&kind=video$/); await expect( - page.getByRole('searchbox', { name: 'Search episodes' }) + page.getByRole('searchbox', { name: 'Filter episodes' }) ).toHaveValue('css'); const results = await shown(page); expect(results.every((card) => card.video)).toBe(true);