Give the unstaged group of Source control its own title

The Changes section and its unstaged group both showed "Changes (2)".
The group title is now "Unstaged changes (2)". The section title keeps the total count.
This commit is contained in:
Knotty Wyvern
2026-10-30 00:21:43 -07:00
parent d849c3c1b5
commit 424a817c90
4 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ await runSmoke("features/git", async ({ page }) => {
await pane.getByText("main", { exact: true }).waitFor();
assert.equal(await loaded(), true, "The Source control pane loads the Git module");
await pane.getByRole("heading", { name: "Staged changes (1)", exact: true }).waitFor();
await pane.getByRole("heading", { name: "Changes (2)", exact: true }).waitFor();
await pane.getByRole("heading", { name: "Unstaged changes (2)", exact: true }).waitFor();
assert.equal(await pane.locator("summary").textContent(), "Changes (3)", "The section title counts all changes");
assert.equal(await pane.getByRole("heading", { name: "Changes (2)", exact: true }).count(), 0, "No group title repeats the section title");
await pane.getByRole("button", { name: "Stage new.md", exact: true }).click();
await page.waitForFunction(() => window.__TEST__.git.calls.some(([command]) => command === "stage"));