Skip to content

Commit b14e0d1

Browse files
committed
chore: consider the activity dots of cpk as a loader in tests
1 parent 4fc9dbd commit b14e0d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

typescript-sdk/apps/dojo/e2e/test-isolation-helper.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ export async function waitForAIResponse(page: Page, timeout: number = 90000) {
2323
await page.waitForFunction(
2424
() => {
2525
// Look for common AI loading indicators
26-
const loadingIndicators = document.querySelectorAll(
26+
const loadingIndicators = [
27+
...document.querySelectorAll(
2728
'[data-testid*="loading"], .loading, .spinner'
28-
);
29+
),
30+
...document.querySelectorAll('.copilotKitActivityDot')
31+
];
2932
return loadingIndicators.length === 0;
3033
},
3134
{ timeout }

0 commit comments

Comments
 (0)