The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(tests): remove unused helper functions from e2e specs
Steven Enamakel34d18970f04e
diff --git a/app/test/e2e/specs/auth-access-control.spec.ts b/app/test/e2e/specs/auth-access-control.spec.tsindex d75d79dec7..2f07dcb227 100644--- a/app/test/e2e/specs/auth-access-control.spec.ts+++ b/app/test/e2e/specs/auth-access-control.spec.ts@@ -26,7 +26,6 @@ import { type AuthStateResponse, authStateValue } from '../helpers/auth-state';import { callOpenhumanRpc, expectRpcOk } from '../helpers/core-rpc';import { triggerAuthDeepLink } from '../helpers/deep-link-helpers';import {- clickTestId,dumpAccessibilityTree,hasAppChrome,textExists,@@ -37,7 +36,6 @@ import {import { resetApp } from '../helpers/reset-app';import {navigateToHome,- navigateToSettings,navigateViaHash,waitForHomePage,walkOnboarding,@@ -57,15 +55,6 @@ import {// waitForHomePage imported from shared-flows-async function waitForTextToDisappear(text, timeout = 10_000) {- const deadline = Date.now() + timeout;- while (Date.now() < deadline) {- if (!(await textExists(text))) return true;- await browser.pause(500);- }- return false;-}-async function waitForRequest(method, urlFragment, timeout = 15_000) {const deadline = Date.now() + timeout;while (Date.now() < deadline) {@@ -77,23 +66,6 @@ async function waitForRequest(method, urlFragment, timeout = 15_000) {return undefined;}-async function expectBillingMarkers(markers) {- const results = [];- for (const marker of markers) {- results.push([marker, await textExists(marker)]);- }- const missing = results.filter(([, found]) => !found).map(([marker]) => marker);- if (missing.length > 0) {- console.log('[AuthAccess] Billing request log:', JSON.stringify(getRequestLog(), null, 2));- const tree = await dumpAccessibilityTree();- console.log('[AuthAccess] Billing page tree:\n', tree.slice(0, 6000));- }- for (const [marker, found] of results) {- expect(found).toBe(true);- console.log(`[AuthAccess] Billing marker verified: ${marker}`);- }-}-/** Install content-free counters before a native auth expiry can be emitted. */async function installAuthExpiryDiagnostics(): Promise<boolean> {return (await browser.execute(async () => {diff --git a/app/test/e2e/specs/login-flow.spec.ts b/app/test/e2e/specs/login-flow.spec.tsindex 3ad7ddffc7..99d3ff1bc7 100644--- a/app/test/e2e/specs/login-flow.spec.ts+++ b/app/test/e2e/specs/login-flow.spec.ts@@ -33,7 +33,6 @@ import { buildBypassJwt, triggerAuthDeepLink, triggerDeepLink } from '../helpersimport {dumpAccessibilityTree,hasAppChrome,- textExists,waitForWebView,waitForWindowVisible,} from '../helpers/element-helpers';@@ -62,25 +61,6 @@ async function waitForRequest(method, urlFragment, timeout = 15_000) {return undefined;}-/**- * Wait until one of the candidate texts appears on screen.- * Returns the matched text or null on timeout.- */-async function waitForAnyText(candidates, timeout = 15_000) {- const deadline = Date.now() + timeout;- while (Date.now() < deadline) {- for (const text of candidates) {- if (await textExists(text)) return text;- }- await browser.pause(500);- }- return null;-}--// Track whether onboarding was walked through in the UI so Phase 3 can-// decide whether to require the onboarding-complete backend call.-let hadOnboardingWalkthrough = false;-describe('Login flow — complete with mock data (Linux)', () => {before(async () => {await startMockServer();@@ -93,7 +73,6 @@ describe('Login flow — complete with mock data (Linux)', () => {// Welcome screen.await resetApp('e2e-login-flow', { skipAuth: true });clearRequestLog();- hadOnboardingWalkthrough = false;});after(async () => {