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:
ryan-crabbe-berri 2026-07-21 18:16:01 -07:00
parent 9355b9c707
commit f1b567f1bc
2 changed files with 4 additions and 2 deletions

View file

@ -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 });

View file

@ -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 });