test: begin exact run retry at canonical agent route

Preserve retry-authority and visible-denial assertions while avoiding the initial agent-route remount race.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-09 16:55:37 -05:00
1 parent 04a69ea6a8
commit 82a96b128d
1 file changed
+3 -3
+3 -3
View File
@@ -1435,12 +1435,12 @@ test.describe("Exact failed chat run retry", () => {
const startPath =
surface === "agent run"
? `/${seed.prefix}/agents/${seed.agentId}/runs/${failedRunId}`
? `/${seed.prefix}/agents/maya/runs/${failedRunId}`
: `/${seed.prefix}/inbox/all`;
await page.goto(startPath);
if (surface === "agent run") {
// Canonicalization reloads the agent query. Interact after that
// navigation so a remount cannot discard the retry mutation result.
// Begin on the canonical route: observing the URL replacement
// alone can race the remount and discard retry mutation feedback.
await expect(page).toHaveURL(
new RegExp(`/${seed.prefix}/agents/maya/runs/${failedRunId}$`),
);