Files
radicle-explorer/tests/e2e/repo/issue.spec.ts
T
Rūdolfs Ošiņš 010cac0377 Redesign app with new UI kit
Redesign the entire app with a new UI kit. Typography, colors, icons,
avatars, and border radii have all been updated for a more polished,
consistent appearance that matches our other products like
radicle-explorer.

- Replace blockies-based avatars with a new DID-based avatar system
- Move Settings and Create Issue into fullscreen modals
- Change the default theme to follow the system theme
- Remove window decorations on macOS for a cleaner, more native feel
- Update the app icon
- Fix popovers and tooltips

Navigation:

- Rewrite app navigation and layouts
- Add a sidebar that gives you access to all your repos
- Change the startup screen to open directly to the notification inbox
- Add a getting started guide shown to new users on first launch

Settings:

- Add a setting to disable the notification badge
- Add a code font setting

Bug fixes:

- Fix reactions and edits incorrectly targeting the root comment
  instead of the intended reply
- Restrict issue/patch state, labels and assignees to delegates only
2026-03-20 17:48:38 -06:00

87 lines
3.0 KiB
TypeScript

import { cobRid, expect, test } from "@tests/support/fixtures.js";
test("navigate single issue", async ({ page }) => {
await page.goto(`/repos/${cobRid}/issues?status=all`);
await page.getByText("This title has **markdown**").click();
await expect(page).toHaveURL(/\/issues\/[0-9a-f]{40}/);
});
test("correct order of threads", async ({ page }) => {
await page.goto("/repos");
await page.getByRole("link", { name: "cobs" }).click();
await page.getByRole("link", { name: "Issues" }).click();
await page.getByText("This title has **markdown**").click();
const body = page.locator(".issue-body");
await expect(body.getByText("This is a description")).toBeVisible();
const topLevelComments = await page.locator(".comments").all();
expect(topLevelComments).toHaveLength(2);
const [first, second] = topLevelComments;
await expect(first.getByText("This is a multiline comment")).toBeVisible();
await expect(
first.getByText("This is a reply, to a first comment"),
).toBeVisible();
await expect(
second.getByText("A root level comment after a reply, for margins sake."),
).toBeVisible();
});
test("creation of top level comments", async ({ page }) => {
await page.goto("/repos");
await page.getByRole("link", { name: "cobs" }).click();
await page.getByRole("link", { name: "Issues" }).click();
await page.getByRole("button", { name: "New" }).click();
await page
.getByPlaceholder("Title")
.fill("Make sure that comment creation is working");
await page
.getByPlaceholder("Description")
.fill(
"It's important for us that the comment creation flow works as expected.",
);
await page.getByRole("button", { name: "icon-checkmark" }).click();
await expect(
page.getByText("Make sure that comment creation is working"),
).toBeVisible();
await expect(
page.getByText(
"It's important for us that the comment creation flow works as expected.",
),
).toBeVisible();
await page.getByRole("button", { name: "icon-comment Comment" }).click();
await page
.getByPlaceholder("Leave a comment")
.fill("A top level comment by playwright");
await page.getByRole("button", { name: "icon-checkmark" }).click();
await expect(
page.getByText("A top level comment by playwright"),
).toBeVisible();
await page.getByLabel("icon-reply").first().click();
await page
.getByPlaceholder("Reply to comment")
.fill(
"A top level comment by playwright created by replying to the issue body",
);
await page.getByRole("button", { name: "icon-checkmark" }).click();
await expect(
page.getByText(
"A top level comment by playwright created by replying to the issue body",
),
).toBeVisible();
await page.getByLabel("icon-reply").click();
await page
.getByPlaceholder("Reply to comment")
.fill("A reply comment by playwright replying to the first comment");
await page.getByRole("button", { name: "icon-checkmark" }).click();
await expect(
page.getByText(
"A reply comment by playwright replying to the first comment",
),
).toBeVisible();
});