Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(e2e): recognize the post-onboarding app shell

Steven Enamakel9dc02d00aa90
diff --git a/app/test/e2e/helpers/shared-flows.ts b/app/test/e2e/helpers/shared-flows.ts
index a9ac3a7b24..0023e52533 100644
--- a/app/test/e2e/helpers/shared-flows.ts
+++ b/app/test/e2e/helpers/shared-flows.ts
@@ -91,6 +91,18 @@ export async function waitForHomePage(timeout = 15_000) {
];
const deadline = Date.now() + timeout;
while (Date.now() < deadline) {
+ // The unified chat surface can legitimately render without a greeting
+ // marker (for example while its thread data is still loading). Once the
+ // authenticated root shell is mounted, the post-onboarding route is ready
+ // for the caller to navigate to its feature under test.
+ if (
+ supportsExecuteScript() &&
+ (await browser.execute(
+ () => document.querySelector('[data-testid="root-shell-sidebar"]') !== null
+ ))
+ ) {
+ return 'application shell';
+ }
for (const text of candidates) {
if (await textExists(text)) return text;
}