fix: (e2e) API surveys after icons changed (#2225)

This commit is contained in:
Shubham Palriwala
2024-03-13 14:31:37 +05:30
committed by GitHub
parent 91447e1502
commit 0aa468f8f3

View File

@@ -25,7 +25,7 @@ test.describe("API Tests", () => {
await page.getByRole("button", { name: "Add Production API Key" }).click();
await page.getByPlaceholder("e.g. GitHub, PostHog, Slack").fill("E2E Test API Key");
await page.getByRole("button", { name: "Add API Key" }).click();
await page.locator("main").filter({ hasText: "Account" }).getByRole("img").click();
await page.locator("main").filter({ hasText: "Account" }).getByRole("img").nth(1).click();
apiKey = await page.evaluate("navigator.clipboard.readText()");
});