test fixes
This commit is contained in:
parent
77dd3cb2b2
commit
977d1f90d2
@ -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…
Reference in New Issue
Block a user