Skip to content

Commit 7b689bd

Browse files
committed
test(dashboard): disambiguate recovery pending state
Signed-off-by: duanjialing.777 <duanjialing.777@bytedance.com>
1 parent 464a278 commit 7b689bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/personal-workspace-browser-smoke.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,14 +2892,14 @@ async function main() {
28922892
await page.locator(".personal-goal-link").first().click();
28932893
await goalNavigation.getByRole("button", { name: "Chat" }).click();
28942894
await page.getByText("保持运行,用于验证刷新恢复。").waitFor({ state: "visible", timeout: 10_000 });
2895-
await page.getByText("正在整理…").waitFor({ state: "hidden", timeout: 10_000 });
2895+
await page.getByText("正在整理…", { exact: true }).waitFor({ state: "hidden", timeout: 10_000 });
28962896
const recovered = page.__loopxRuntime.sessions.get(recoveryTurn.sessionId);
28972897
if (recovered?.active_turn_id !== null && recovered?.active_turn_id !== recoveryTurn.turnId) {
28982898
throw new Error("Recovered Session points at a different active Turn");
28992899
}
29002900
pass(6, "Reload restored visible Goal history and resumed the active Turn SSE stream.");
29012901
} catch (error) {
2902-
fail(6, "Reload did not restore the active Goal conversation and reconnect its active Turn within 10 seconds.");
2902+
fail(6, `Reload did not restore the active Goal conversation and reconnect its active Turn within 10 seconds: ${error.message}`);
29032903
await page.screenshot({ path: resolve(outputDir, "refresh-recovery-failed.png"), fullPage: true, animations: "disabled" });
29042904
observations.push(`Refresh recovery failure: ${error.message}`);
29052905
}

0 commit comments

Comments
 (0)