Skip to content

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

test(e2e): refresh Jira connector state before modal

Steven Enamakel896ef45c59e6
diff --git a/app/test/e2e/specs/connector-jira.spec.ts b/app/test/e2e/specs/connector-jira.spec.ts
index 6e77c77310..e0ed6373ac 100644
--- a/app/test/e2e/specs/connector-jira.spec.ts
+++ b/app/test/e2e/specs/connector-jira.spec.ts
@@ -23,7 +23,11 @@ import {
waitForWebView,
waitForWindowVisible,
} from '../helpers/element-helpers';
-import { completeOnboardingIfVisible, navigateToSkills } from '../helpers/shared-flows';
+import {
+ completeOnboardingIfVisible,
+ navigateToSkills,
+ navigateViaHash,
+} from '../helpers/shared-flows';
import {
clearRequestLog,
getRequestLog,
@@ -101,6 +105,11 @@ describe('Jira Composio connector flow', () => {
.filter(k => k.includes('composio:connections'))
.forEach(k => window.localStorage.removeItem(k));
});
+ // The preceding test already leaves us on Connections → Composio. Setting
+ // the same hash again does not remount the page, so it would keep the
+ // previous ACTIVE tile and never refetch the newly seeded empty list.
+ // Take a real route transition before returning to the connector surface.
+ await navigateViaHash('/chat');
await navigateToSkills();
await waitForText(CONNECTOR_NAME, 10_000);
await waitForJiraDisconnected(20_000);