Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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.
Expand Down
Loading