diff --git a/examples/personal-workspace-browser/goal-suggestions-live.mjs b/examples/personal-workspace-browser/goal-suggestions-live.mjs index 2986c98a0a..cc7359b288 100644 --- a/examples/personal-workspace-browser/goal-suggestions-live.mjs +++ b/examples/personal-workspace-browser/goal-suggestions-live.mjs @@ -54,6 +54,7 @@ export const goalSuggestionsLiveScenario = { // An optional user action is listed by the real owner but is not a decision. assert.equal((await cli("add", "--goal-id", goalId, "--role", "user", "--task-class", "user_action", "--text", optionalText)).ok, true); + await refresh(); await openConversation(); await page.waitForTimeout(1_000); await summary.click(); @@ -62,7 +63,7 @@ export const goalSuggestionsLiveScenario = { assert.doesNotMatch(before, /等你决定/, `an optional user action is not a decision suggestion: ${before}`); await page.getByRole("navigation", { name: "Goal 视图" }).getByRole("button", { name: "概览", exact: true }).click(); const vitals = (await page.getByTestId("goal-vitals").innerText()).replace(/\s+/g, " "); - assert.match(vitals, /0 等你决定|可选/, `the lane itself shows the item as optional: ${vitals}`); + assert.match(vitals, /另有 1 项可选/, `the lane itself shows the item as optional: ${vitals}`); await home(); // A real gate is a decision; the count is the lane's own count.