feat(app): migrate discovery workflows (#38465)

This commit is contained in:
Brendan Allan
2026-07-24 14:38:39 +08:00
committed by GitHub
parent 5ce89dc2ad
commit d07323ef59
24 changed files with 353 additions and 222 deletions
@@ -16,8 +16,8 @@ test("shows loaded sessions before the directory path request resolves", async (
const pathBlocked = new Promise<void>((resolve) => {
releasePath = resolve
})
await page.route("**/path?*", async (route) => {
if (!new URL(route.request().url()).searchParams.has("directory")) return route.fallback()
await page.route("**/api/path?*", async (route) => {
if (!new URL(route.request().url()).searchParams.has("location[directory]")) return route.fallback()
await pathBlocked
return route.fallback()
})