chore: stabalize live preview test suite
This commit is contained in:
@@ -3,7 +3,8 @@ import type { AdminUrlUtil } from 'helpers/adminUrlUtil.js'
|
||||
|
||||
export const navigateToDoc = async (page: Page, urlUtil: AdminUrlUtil) => {
|
||||
await page.goto(urlUtil.list)
|
||||
await page.waitForURL(urlUtil.list)
|
||||
const regex = new RegExp(`^${urlUtil.list}(?:\\?.*)?$`)
|
||||
await page.waitForURL(regex)
|
||||
const cellLink = page.locator(`tbody tr:first-child td a`).first()
|
||||
const linkURL = await cellLink.getAttribute('href')
|
||||
await page.goto(`${urlUtil.serverURL}${linkURL}`)
|
||||
|
||||
Reference in New Issue
Block a user