Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

test(frontend): fix library flaky e2e test (#10764)

Abhimanyu Yadavb23cb14e4914
diff --git a/autogpt_platform/frontend/src/tests/pages/library.page.ts b/autogpt_platform/frontend/src/tests/pages/library.page.ts
index ef26ad60bf..c75fc51c93 100644
--- a/autogpt_platform/frontend/src/tests/pages/library.page.ts
+++ b/autogpt_platform/frontend/src/tests/pages/library.page.ts
@@ -206,6 +206,7 @@ export class LibraryPage extends BasePage {
async clickAgent(agent: Agent): Promise<void> {
await this.page
.getByRole("heading", { name: agent.name, level: 3 })
+ .first()
.click();
}