Skip to content

Commit

Permalink
consolidate test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 8, 2024
1 parent 97eb707 commit 64e9d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions test/e2e/app-dir/actions/app-action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/app-dir/actions/app/client/actions-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64e9d10

Please sign in to comment.