mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
test(e2e): catch key-delete and credential-edit specs up with dropdown UI
The key info header moved Delete Key into the More key actions menu (#34116) and the credentials table moved row actions into a dropdown with data-testids (shared DataTable migration), so both specs timed out looking for buttons that no longer exist. Reproduced against a proxy serving a fresh dashboard build; both pass after pointing them at the menus.
This commit is contained in:
parent
9355b9c707
commit
f1b567f1bc
2 changed files with 4 additions and 2 deletions
|
|
@ -38,7 +38,8 @@ test.describe("Edit LLM credential", () => {
|
|||
|
||||
const row = page.locator("tr", { hasText: credentialName });
|
||||
await expect(row).toBeVisible({ timeout: 15_000 });
|
||||
await row.getByRole("button").first().click();
|
||||
await row.getByTestId(`credential-actions-${credentialName}`).click();
|
||||
await page.getByTestId("credential-action-edit").click();
|
||||
|
||||
const modal = page.locator(".ant-modal-content").filter({ hasText: "Edit Credential" });
|
||||
await expect(modal).toBeVisible({ timeout: 10_000 });
|
||||
|
|
|
|||
|
|
@ -103,7 +103,8 @@ test.describe("Proxy Admin - Keys", () => {
|
|||
|
||||
await expect(page.getByText("Back to Keys")).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
await page.getByRole("button", { name: "Delete Key" }).click();
|
||||
await page.getByRole("button", { name: "More key actions" }).click();
|
||||
await page.getByRole("menuitem", { name: "Delete Key" }).click();
|
||||
|
||||
const modal = page.locator(".ant-modal:visible");
|
||||
await expect(modal).toBeVisible({ timeout: 5_000 });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue