From 0bc014dded3f21a89bb9d7f0c8e26100a9b1d7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 4 Nov 2026 10:49:08 +0100 Subject: [PATCH] Fix e2e tests --- desktop/tests/e2e/repo/tasks.spec.ts | 3 +++ explorer/tests/e2e/clipboard.spec.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/desktop/tests/e2e/repo/tasks.spec.ts b/desktop/tests/e2e/repo/tasks.spec.ts index eff8bdd33..905c1ff93 100644 --- a/desktop/tests/e2e/repo/tasks.spec.ts +++ b/desktop/tests/e2e/repo/tasks.spec.ts @@ -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()); diff --git a/explorer/tests/e2e/clipboard.spec.ts b/explorer/tests/e2e/clipboard.spec.ts index 3c0b18390..bad60771e 100644 --- a/explorer/tests/e2e/clipboard.spec.ts +++ b/explorer/tests/e2e/clipboard.spec.ts @@ -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(