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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user