test fixes

This commit is contained in:
Ishaan Jaffer 2026-02-14 11:33:45 -08:00
parent 77dd3cb2b2
commit 977d1f90d2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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