Unverified Commit aa4d90c7 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Revert "[test] fix flaky test of basepath navigation" (#80259)

parent 70cbcf1a
...@@ -12,12 +12,7 @@ describe('app dir - basepath', () => { ...@@ -12,12 +12,7 @@ describe('app dir - basepath', () => {
it('should successfully hard navigate from pages -> app', async () => { it('should successfully hard navigate from pages -> app', async () => {
const browser = await next.browser('/base/pages-path') const browser = await next.browser('/base/pages-path')
await browser.waitForElementByCss('#to-another').click() await browser.elementByCss('#to-another').click()
// Wait for url to change, ensure the navigation is finished,
// then we can assert if the element is present.
await retry(async () => {
expect(await browser.url()).toBe(`${next.url}/base/another`)
}, 5_000)
await browser.waitForElementByCss('#page-2') await browser.waitForElementByCss('#page-2')
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment