Skip to content

Commit

Permalink
assert no mpa navigation took place
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Nov 13, 2024
1 parent 90e32f6 commit 9e137bd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ describe('server-actions-relative-redirect', () => {

it('should work with multi-level relative redirect from subdir', async () => {
const browser = await next.browser('/subdir')
await browser.eval('window.notReloaded = true')
await browser.waitForElementByCss('#multi-relative-subdir-redirect').click()

await retry(async () => {
expect(await browser.waitForElementByCss('#page-loaded').text()).toBe(
'hello nested page'
)
})

expect(await browser.eval('window.notReloaded')).toBe(true)
})
})

0 comments on commit 9e137bd

Please sign in to comment.