mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-13 18:40:50 +08:00
Fix e2e tests
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user