mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-13 03:59:12 +00:00
test(e2e): activate Virtual Key details from row text
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
d6492ac8ae
commit
7b0d90bd8c
3 changed files with 5 additions and 5 deletions
|
|
@ -92,7 +92,7 @@ export async function openKeyDetail(page: PlaywrightPage, alias: string): Promis
|
|||
await page.getByPlaceholder("Search by key alias or ID").fill(alias);
|
||||
const row = page.getByRole("row").filter({ hasText: alias });
|
||||
await expect(row, `key row "${alias}" never appeared on the Virtual Keys page`).toBeVisible({ timeout: 15_000 });
|
||||
await row.getByRole("button", { name: alias }).click();
|
||||
await row.getByText(alias, { exact: true }).click();
|
||||
await expect(page.getByText("Back to Keys"), `key detail for "${alias}" never opened`).toBeVisible({
|
||||
timeout: 15_000,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ test.describe("Internal Viewer", () => {
|
|||
// Open the viewer's own key info page
|
||||
const keyRow = page.getByRole("row").filter({ hasText: E2E_VIEWER_KEY_ALIAS });
|
||||
await expect(keyRow).toBeVisible({ timeout: 10_000 });
|
||||
await keyRow.getByRole("button", { name: E2E_VIEWER_KEY_ALIAS }).click();
|
||||
await keyRow.getByText(E2E_VIEWER_KEY_ALIAS, { exact: true }).click();
|
||||
await expect(page.getByText("Back to Keys")).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
// None of the destructive / mutating actions should render
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ test.describe("Proxy Admin - Keys", () => {
|
|||
|
||||
const keyRow = page.getByRole("row").filter({ hasText: E2E_REGENERATE_KEY_ALIAS });
|
||||
await expect(keyRow).toBeVisible({ timeout: 10_000 });
|
||||
await keyRow.getByRole("button", { name: E2E_REGENERATE_KEY_ALIAS }).click();
|
||||
await keyRow.getByText(E2E_REGENERATE_KEY_ALIAS, { exact: true }).click();
|
||||
|
||||
await expect(page.getByText("Back to Keys")).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ test.describe("Proxy Admin - Keys", () => {
|
|||
|
||||
const keyRow = page.getByRole("row").filter({ hasText: E2E_UPDATE_LIMITS_KEY_ALIAS });
|
||||
await expect(keyRow).toBeVisible({ timeout: 10_000 });
|
||||
await keyRow.getByRole("button", { name: E2E_UPDATE_LIMITS_KEY_ALIAS }).click();
|
||||
await keyRow.getByText(E2E_UPDATE_LIMITS_KEY_ALIAS, { exact: true }).click();
|
||||
|
||||
await expect(page.getByText("Back to Keys")).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ test.describe("Proxy Admin - Keys", () => {
|
|||
|
||||
const keyRow = page.getByRole("row").filter({ hasText: alias });
|
||||
await expect(keyRow).toBeVisible({ timeout: 10_000 });
|
||||
await keyRow.getByRole("button", { name: alias }).click();
|
||||
await keyRow.getByText(alias, { exact: true }).click();
|
||||
|
||||
await expect(page.getByText("Back to Keys")).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue