Skip to content

Commit

Permalink
Check page text too
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jan 11, 2024
1 parent eca4f6b commit 58a6a4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/e2e/app-dir/app-basepath-custom-server/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ createNextDescribe(
expect(await getCount()).toBe('Count: 2')
})

await browser
.elementById('submit-server-action-redirect')
.click()
.waitForElementByCss('#another')
await browser.elementById('submit-server-action-redirect').click()

expect(await browser.waitForElementByCss('#another').text()).toBe(
'Another Page'
)
expect(await browser.url()).toBe(
`http://localhost:${next.appPort}/base/another`
)
Expand Down

0 comments on commit 58a6a4c

Please sign in to comment.