diff --git a/test/e2e/app-dir/revalidatetag-rsc/revalidatetag-rsc.test.ts b/test/e2e/app-dir/revalidatetag-rsc/revalidatetag-rsc.test.ts index 5355fb7d1c602f..9bb8d868aa5b88 100644 --- a/test/e2e/app-dir/revalidatetag-rsc/revalidatetag-rsc.test.ts +++ b/test/e2e/app-dir/revalidatetag-rsc/revalidatetag-rsc.test.ts @@ -27,9 +27,10 @@ describe('revalidateTag-rsc', () => { await browser.refresh() const randomNumber2 = await browser.elementById('data').text() expect(randomNumber).toEqual(randomNumber2) - await browser.elementByCss('#revalidate-via-page').click() await browser.waitForElementByCss('#home') + // need to refresh to evict client router cache + await browser.refresh() await browser.elementByCss('#home').click() await browser.waitForElementByCss('#data') const randomNumber3 = await browser.elementById('data').text()