Skip to content

Commit 2974a6c

Browse files
committed
test(org): wait for the Search retry's read by its path alone
The read carries ?organizationId, and pathOf keeps the query, so the exact match never fired and the check timed out on a retry that had worked.
1 parent 2ee79ca commit 2974a6c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/sim/scripts/org-redesign-e2e/checks/integrations.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
notProvable,
1111
orgUrl,
1212
PHONE,
13-
pathOf,
1413
refused,
1514
root,
1615
section,
@@ -253,7 +252,7 @@ export async function integrationChecks() {
253252
await restore()
254253
const reread = page.waitForResponse(
255254
(response) =>
256-
pathOf(response.url()) === '/api/knowledge/sim-search/integrations' &&
255+
new URL(response.url()).pathname === '/api/knowledge/sim-search/integrations' &&
257256
response.request().method() === 'GET'
258257
)
259258
await retry(page).click()

0 commit comments

Comments
 (0)