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.

fix(tests/frontend): resolve flaky test due to duplicate heading elements on marketplace page (#11369)

Abhimanyu Yadavbe01a1316ac7
diff --git a/autogpt_platform/frontend/src/tests/utils/signup.ts b/autogpt_platform/frontend/src/tests/utils/signup.ts
index 67241b15fe..7c8fdbe01b 100644
--- a/autogpt_platform/frontend/src/tests/utils/signup.ts
+++ b/autogpt_platform/frontend/src/tests/utils/signup.ts
@@ -67,6 +67,7 @@ export async function signupTestUser(
.getByText(
"Bringing you AI agents designed by thinkers from around the world",
)
+ .first()
.waitFor({ state: "visible", timeout: 10000 });
// Verify user is authenticated (profile menu visible)