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(