Skip to content

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

fix(e2e): dismiss walkthrough before route check

Steven Enamakel689741cf494f
diff --git a/app/test/e2e/specs/local-model-runtime.spec.ts b/app/test/e2e/specs/local-model-runtime.spec.ts
index 54542f6c4d..7daf725975 100644
--- a/app/test/e2e/specs/local-model-runtime.spec.ts
+++ b/app/test/e2e/specs/local-model-runtime.spec.ts
@@ -1,8 +1,17 @@
// @ts-nocheck
import { waitForApp, waitForAppReady } from '../helpers/app-helpers';
import { triggerAuthDeepLink } from '../helpers/deep-link-helpers';
-import { textExists, waitForWebView, waitForWindowVisible } from '../helpers/element-helpers';
-import { dismissWalkthroughIfVisible, walkOnboarding } from '../helpers/shared-flows';
+import {
+ textExists,
+ visibleTextExists,
+ waitForWebView,
+ waitForWindowVisible,
+} from '../helpers/element-helpers';
+import {
+ dismissWalkthroughIfVisible,
+ waitForHomePage,
+ walkOnboarding,
+} from '../helpers/shared-flows';
import { startMockServer, stopMockServer } from '../mock-server';
/**
@@ -70,7 +79,13 @@ describe('Local model runtime route', () => {
await waitForWebView(15_000);
await waitForAppReady(15_000);
await walkOnboarding('[LocalModel]');
- await dismissWalkthroughIfVisible(10_000);
+ await waitForHomePage(20_000);
+ await dismissWalkthroughIfVisible(20_000);
+ await browser.waitUntil(async () => !(await visibleTextExists('Skip tour')), {
+ timeout: 3_000,
+ interval: 250,
+ timeoutMsg: 'walkthrough must be dismissed before route navigation',
+ });
await browser.execute(() => {
window.location.hash = '#/settings/local-model-debug';