mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
test fixes
This commit is contained in:
parent
77dd3cb2b2
commit
977d1f90d2
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ async function globalSetup() {
|
|||
await page.getByPlaceholder("Enter your password").fill(users[Role.ProxyAdmin].password);
|
||||
const loginButton = page.getByRole("button", { name: "Login", exact: true });
|
||||
await loginButton.click();
|
||||
await page.waitForSelector("text=AI Gateway");
|
||||
await page.waitForSelector("text=Virtual Keys");
|
||||
await page.context().storageState({ path: "admin.storageState.json" });
|
||||
await browser.close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ test("user can log in", async ({ page }) => {
|
|||
const loginButton = page.getByRole("button", { name: "Login", exact: true });
|
||||
await expect(loginButton).toBeEnabled();
|
||||
await loginButton.click();
|
||||
await expect(page.getByText("AI Gateway")).toBeVisible();
|
||||
await expect(page.getByText("Virtual Keys")).toBeVisible();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue