mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
* test(ui-e2e): update usage page selectors after the #45221 redesign * test(ui-e2e): drop the top keys locator comment --------- Co-authored-by: yuneng <yuneng@berri.ai>
This commit is contained in:
parent
308c42a4a2
commit
8bae65e0b6
2 changed files with 2 additions and 3 deletions
|
|
@ -117,7 +117,7 @@ export const MIGRATED_E2E_PAGES: Readonly<Record<string, MigratedPage>> = {
|
|||
linkName: "AI Hub",
|
||||
content: { role: "heading", name: "AI Hub" },
|
||||
},
|
||||
new_usage: { segment: "usage", linkName: "Usage", content: { role: "heading", name: "Usage View" } },
|
||||
new_usage: { segment: "usage", linkName: "Usage", content: { role: "heading", name: "Usage" } },
|
||||
usage: {
|
||||
segment: "old-usage",
|
||||
linkName: "Old Usage",
|
||||
|
|
|
|||
|
|
@ -13,9 +13,8 @@ import {
|
|||
|
||||
/** Covers /ui/usage. The legacy /ui/old-usage view is deprecated and deliberately not covered. */
|
||||
|
||||
/** Stepping up from the title is exact; the page renders several other tables. */
|
||||
const topKeysCard = (page: PlaywrightPage): Locator =>
|
||||
page.getByText("Top Virtual Keys", { exact: true }).locator("xpath=..");
|
||||
page.locator("section").filter({ has: page.getByRole("heading", { name: "Top Virtual Keys", exact: true }) });
|
||||
|
||||
async function openUsage(page: PlaywrightPage): Promise<Locator> {
|
||||
await navigateToPage(page, Page.NewUsage);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue