Refactor Issue discussion section

We now use the Discussion component like everywhere else.
This commit is contained in:
Rūdolfs Ošiņš
2025-02-19 15:25:50 -06:00
parent 16c72d5b2f
commit 2e6fed9845
2 changed files with 20 additions and 82 deletions
+3 -3
View File
@@ -56,7 +56,7 @@ test("creation of top level comments", async ({ page }) => {
.last(),
).toBeVisible();
await page.getByRole("button", { name: "Leave a comment" }).click();
await page.getByRole("button", { name: "icon-comment Comment" }).click();
await page
.getByPlaceholder("Leave a comment")
.fill("A top level comment by playwright");
@@ -67,7 +67,7 @@ test("creation of top level comments", async ({ page }) => {
await page.getByLabel("icon-reply").first().click();
await page
.getByPlaceholder("Leave a comment")
.getByPlaceholder("Reply to comment")
.fill(
"A top level comment by playwright created by replying to the issue body",
);
@@ -78,7 +78,7 @@ test("creation of top level comments", async ({ page }) => {
),
).toBeVisible();
await page.getByLabel("icon-reply").nth(1).click();
await page.getByLabel("icon-reply").click();
await page
.getByPlaceholder("Reply to comment")
.fill("A reply comment by playwright replying to the first comment");