From 5b0af4a756b3292a99afbc865591e6024a25299a Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Mon, 20 May 2024 20:27:48 +0900 Subject: [PATCH] test: add details --- .../prefetch-searchparam/prefetch-searchparam.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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('{}')