agent-flow / src /frontend /tests /utils /remove-old-api-keys.ts
Tai Truong
fix readme
d202ada
raw
history blame contribute delete
340 Bytes
import { Page } from "playwright/test";
export async function removeOldApiKeys(page: Page) {
let filledApiKey = await page.getByTestId("remove-icon-badge").count();
while (filledApiKey > 0) {
await page.getByTestId("remove-icon-badge").first().click();
filledApiKey = await page.getByTestId("remove-icon-badge").count();
}
}