mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
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:
1 parent
04a69ea6a8
commit
82a96b128d
1 file changed
+3
-3
@@ -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}$`),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user