diff --git a/test/e2e/app-dir/actions/app-action.test.ts b/test/e2e/app-dir/actions/app-action.test.ts index 145d684954d2e..d36731e523352 100644 --- a/test/e2e/app-dir/actions/app-action.test.ts +++ b/test/e2e/app-dir/actions/app-action.test.ts @@ -890,13 +890,12 @@ describe('app-dir action handling', () => { await browser.elementByCss('#redirect-pages').click() await retry(async () => { + expect(await browser.elementByCss('body').text()).toContain( + 'Hello from a pages route' + ) expect(await browser.url()).toBe(`${next.url}/pages-dir`) expect(mpaTriggered).toBe(true) }) - - expect(await browser.elementByCss('body').text()).toContain( - 'Hello from a pages route' - ) }) // TODO: investigate flakey behavior with revalidate diff --git a/test/e2e/app-dir/actions/app/client/actions-lib.js b/test/e2e/app-dir/actions/app/client/actions-lib.js index bb51170953b2a..936bdaed2c7aa 100644 --- a/test/e2e/app-dir/actions/app/client/actions-lib.js +++ b/test/e2e/app-dir/actions/app/client/actions-lib.js @@ -2,7 +2,7 @@ // Any arbitrary library just to ensure it's bundled. // https://github.com/vercel/next.js/pull/51367 -import nanoid from 'nanoid' +import { nanoid } from 'nanoid' export async function test() { console.log(nanoid)