diff --git a/test/e2e/app-dir/prefetch-searchparam/prefetch-searchparam.test.ts b/test/e2e/app-dir/prefetch-searchparam/prefetch-searchparam.test.ts index 8f1709b7d9005..c122c412edf49 100644 --- a/test/e2e/app-dir/prefetch-searchparam/prefetch-searchparam.test.ts +++ b/test/e2e/app-dir/prefetch-searchparam/prefetch-searchparam.test.ts @@ -4,8 +4,8 @@ describe('prefetch-searchparam', () => { const { next } = nextTestSetup({ files: __dirname, }) - it('should work using browser', async () => { - // load with search param + it('should set prefetch cache properly on different search params', async () => { + // load WITH search param const browser = await next.browser('/?q=foo') expect(await browser.elementByCss('p').text()).toBe('{"q":"foo"}') @@ -14,7 +14,7 @@ describe('prefetch-searchparam', () => { await browser.waitForElementByCss('p', 5000) expect(await browser.elementByCss('p').text()).toBe('{"q":"bar"}') - // navigate to home, should clear the search param + // navigate to home, should clear the searchParams value await browser.elementByCss('[href="/"]').click() await browser.waitForElementByCss('p', 5000) expect(await browser.elementByCss('p').text()).toBe('{}')