chore: deflakes lexical e2e test (#8559)

This has caused me great pain. The problem with this test is that the
page was waiting for a URL which includes a search query that never
arrives. This moves the check into a regex pattern for a more accurate
catch.
This commit is contained in:
Jacob Fletcher
2024-10-04 17:29:38 -04:00
committed by GitHub
parent 7c62e2a327
commit d564cd44e9

View File

@@ -870,7 +870,8 @@ describe('lexicalBlocks', () => {
// navigate to list view
await page.locator('.step-nav a').nth(1).click()
await page.waitForURL('**/lexical-fields?limit=10')
await page.waitForURL(/^.*\/lexical-fields(\?.*)?$/)
// Click on lexical document in list view (navigateToLexicalFields is client-side navigation which is what we need to reproduce the issue here)
await navigateToLexicalFields(false)