Fix e2e tests

This commit is contained in:
Rūdolfs Ošiņš
2026-11-04 10:49:08 +01:00
parent 41592b29b3
commit 0bc014dded
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -427,6 +427,9 @@ test("ticking a task in a revision keeps its subject", async ({
test("ticking a task on the changes tab is saved", async ({ page, peer }) => {
await openTaskPatch(page, peer, "?view=changes");
// The diff moves the description into place when it first renders, and a
// click that lands during the move is dropped.
await expect(page.locator("[data-line-type]").first()).toBeVisible();
const reader = page.getByRole("checkbox", { name: "Ask a reader" });
await waitForCommand(page, "edit_patch", () => reader.click());
+2 -2
View File
@@ -41,7 +41,7 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
await page.getByRole("button", { name: "Clone" }).first().click();
await page
.locator(".cmd:has-text('rad clone')")
.locator(".clipboard")
.getByRole("button", { name: "Copy" })
.first()
.click();
await expectClipboard(`rad clone ${sourceBrowsingRid}`);
@@ -52,7 +52,7 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
await page.getByRole("button", { name: "Git" }).click();
await page
.locator(".cmd:has-text('git clone')")
.locator(".clipboard")
.getByRole("button", { name: "Copy" })
.first()
.click();
await expectClipboard(