mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Add test to check that issue counter updates when closing issue
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -93,6 +93,12 @@ test("test issue counters", async ({ page, authenticatedPeer }) => {
|
||||
await expect(page.getByRole("button", { name: "2 issues" })).toBeVisible();
|
||||
await expect(page.getByRole("button", { name: "2 open" })).toBeVisible();
|
||||
await expect(page.locator(".issues-list .teaser")).toHaveCount(2);
|
||||
|
||||
await page
|
||||
.getByRole("link", { name: "First issue to test counters" })
|
||||
.click();
|
||||
await page.getByRole("button", { name: "Close issue as solved" }).click();
|
||||
await expect(page.getByRole("button", { name: "1 issue" })).toBeVisible();
|
||||
});
|
||||
|
||||
test("test issue editing failing", async ({ page, authenticatedPeer }) => {
|
||||
|
||||
Reference in New Issue
Block a user