Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add test to check that issue counter updates when closing issue
Sebastian Martinez committed 2 years ago
commit ea1f23c4a201dd23d87a6b3df0603b7fa6a24076
parent 6e049197efdd86a1b58efecdc92d94e819ade07b
1 file changed +6 -0
modified 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 }) => {