Finishing agent merge
This commit is contained in:
@@ -98,6 +98,7 @@ test.describe("Story TODOs panel", () => {
|
||||
"The UI lists unchecked acceptance criteria.",
|
||||
"Each TODO is displayed as its full text.",
|
||||
],
|
||||
error: null,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -124,6 +125,7 @@ test.describe("Story TODOs panel", () => {
|
||||
story_id: "28_ui_show_test_todos",
|
||||
story_name: "Show Remaining Test TODOs in the UI",
|
||||
todos: [],
|
||||
error: null,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -137,6 +139,26 @@ test.describe("Story TODOs panel", () => {
|
||||
await expect(page.getByText("0 remaining")).toBeVisible();
|
||||
});
|
||||
|
||||
test("shows per-story front matter error", async ({ page }) => {
|
||||
await mockChatApis(page, {
|
||||
todos: {
|
||||
stories: [
|
||||
{
|
||||
story_id: "28_ui_show_test_todos",
|
||||
story_name: null,
|
||||
todos: [],
|
||||
error: "Missing front matter",
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
await openProject(page);
|
||||
|
||||
await expect(page.getByText("Missing front matter")).toBeVisible();
|
||||
await expect(page.getByText("28_ui_show_test_todos")).toBeVisible();
|
||||
});
|
||||
|
||||
test("shows TODO items from multiple stories", async ({ page }) => {
|
||||
await mockChatApis(page, {
|
||||
todos: {
|
||||
@@ -145,11 +167,13 @@ test.describe("Story TODOs panel", () => {
|
||||
story_id: "28_ui_show_test_todos",
|
||||
story_name: "Show TODOs",
|
||||
todos: ["First criterion."],
|
||||
error: null,
|
||||
},
|
||||
{
|
||||
story_id: "29_another_story",
|
||||
story_name: "Another Story",
|
||||
todos: ["Second criterion."],
|
||||
error: null,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user