test(e2e): fix locator for delete volume button now in dropdown
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
This commit is contained in:
parent
7add3dd517
commit
74d20d5be3
2 changed files with 8 additions and 6 deletions
|
|
@ -360,13 +360,15 @@ test("deleting a volume cascades and removes its backup schedule", async ({ page
|
||||||
await expect(volumeLink).toBeVisible();
|
await expect(volumeLink).toBeVisible();
|
||||||
await volumeLink.click();
|
await volumeLink.click();
|
||||||
await expect(page).toHaveURL(/\/volumes\/[^/?#]+/);
|
await expect(page).toHaveURL(/\/volumes\/[^/?#]+/);
|
||||||
await expect(page.getByText("Volume Configuration", { exact: true })).toBeVisible();
|
await expect(page.getByRole("button", { name: "Actions" })).toBeVisible();
|
||||||
await expect(page.getByRole("button", { name: "Delete" })).toBeVisible();
|
const deleteVolumeMenuItem = page.getByRole("menuitem", { name: "Delete" });
|
||||||
|
|
||||||
await expect(async () => {
|
await expect(async () => {
|
||||||
await page.getByRole("button", { name: "Delete" }).click();
|
await page.getByRole("button", { name: "Actions" }).click();
|
||||||
await expect(page.getByRole("heading", { name: "Delete volume?" })).toBeVisible();
|
await expect(deleteVolumeMenuItem).toBeVisible();
|
||||||
}).toPass({ timeout: 10000 });
|
}).toPass({ timeout: 10000 });
|
||||||
|
await deleteVolumeMenuItem.click({ force: true });
|
||||||
|
await expect(page.getByRole("heading", { name: "Delete volume?" })).toBeVisible();
|
||||||
await expect(page.getByText("All backup schedules associated with this volume will also be removed.")).toBeVisible();
|
await expect(page.getByText("All backup schedules associated with this volume will also be removed.")).toBeVisible();
|
||||||
await page.getByRole("button", { name: "Delete volume" }).click();
|
await page.getByRole("button", { name: "Delete volume" }).click();
|
||||||
await expect(page.getByText("Volume deleted successfully")).toBeVisible();
|
await expect(page.getByText("Volume deleted successfully")).toBeVisible();
|
||||||
|
|
|
||||||
|
|
@ -241,8 +241,8 @@ export const trackBrowserErrors = (context: BrowserContext, options: TrackBrowse
|
||||||
await options.attach("first-pageerror.html", firstPageErrorSnapshot.snapshot.html, "text/html");
|
await options.attach("first-pageerror.html", firstPageErrorSnapshot.snapshot.html, "text/html");
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(
|
console.warn(
|
||||||
`Browser console errors detected:\n\n${failingBrowserErrors.map(formatBrowserErrorRecord).join("\n\n")}`,
|
`[browser-errors] Browser console errors detected:\n\n${failingBrowserErrors.map(formatBrowserErrorRecord).join("\n\n")}`,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue