Add test to check that issue counter updates when closing issue

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-08-28 09:18:07 +02:00
parent 6e049197ef
commit ea1f23c4a2
+6
View File
@@ -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 }) => {