From ea1f23c4a201dd23d87a6b3df0603b7fa6a24076 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 28 Aug 2023 09:14:30 +0200 Subject: [PATCH] Add test to check that issue counter updates when closing issue Signed-off-by: Sebastian Martinez --- tests/e2e/project/issues.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/e2e/project/issues.spec.ts b/tests/e2e/project/issues.spec.ts index 3ed815a77..ceeac5fcc 100644 --- a/tests/e2e/project/issues.spec.ts +++ b/tests/e2e/project/issues.spec.ts @@ -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 }) => {