fix(e2e): remove flaky banner check and increase regenerate key timeout

This commit is contained in:
Yuneng Jiang
2026-04-09 23:21:01 -07:00
parent d4288b4ff4
commit 89320a955c
@@ -68,9 +68,8 @@ test.describe("Proxy Admin - Keys", () => {
const modal = page.locator(".ant-modal:visible");
await modal.getByRole("button", { name: /Regenerate/ }).click();
// Success view shows the warning banner and a Copy Key button in the footer
await expect(modal.getByText("Save it now, you will not see it again")).toBeVisible({ timeout: 10_000 });
await expect(modal.getByRole("button", { name: /Copy Key/ })).toBeVisible({ timeout: 10_000 });
// Success view shows a Copy Key button in the footer
await expect(modal.getByRole("button", { name: /Copy Key/ })).toBeVisible({ timeout: 20_000 });
});
test("Update key TPM and RPM limits", async ({ page }) => {