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
test(playwright): add scroll stability and cron jobs specs
Steven Enamakel9e5d75ab51e1
diff --git a/app/test/playwright/specs/chat-scroll-stability.spec.ts b/app/test/playwright/specs/chat-scroll-stability.spec.tsindex 9f0a2bda7b..02b7fd1757 100644--- a/app/test/playwright/specs/chat-scroll-stability.spec.ts+++ b/app/test/playwright/specs/chat-scroll-stability.spec.ts@@ -49,7 +49,17 @@ test.describe('Chat scroll paint stability', () => {await dismissWalkthroughIfPresent(page);const row = page.getByTestId(`thread-row-${threadId}`);await expect(row).toBeVisible({ timeout: 20_000 });+ const transcriptLoaded = page.waitForResponse(response => {+ const body = response.request().postData();+ return Boolean(+ body?.includes('openhuman.threads_transcript_get') && body.includes(threadId)+ );+ });await row.click({ force: true });+ // The message list can paint before the settled-turn projection request+ // completes. Establish that initial hydration is finished before measuring+ // whether scrolling itself triggers another transcript read.+ await transcriptLoaded;const roots = page.locator('[data-slot="aui_assistant-message-root"], [data-slot="aui_user-message-root"]'diff --git a/app/test/playwright/specs/cron-jobs-flow.spec.ts b/app/test/playwright/specs/cron-jobs-flow.spec.tsindex 03b0779f10..3f95215d3f 100644--- a/app/test/playwright/specs/cron-jobs-flow.spec.ts+++ b/app/test/playwright/specs/cron-jobs-flow.spec.ts@@ -28,14 +28,16 @@ test.describe('Cron jobs settings panel', () => {page,}) => {await openCronJobsPanel(page);- const text = await page.locator('#root').innerText();- expect(- [- 'Failed to load core cron jobs: Not running in Tauri',- 'No core cron jobs found.',- MORNING_BRIEFING,- ].some(marker => text.includes(marker))- ).toBe(true);+ await expect+ .poll(async () => {+ const text = await page.locator('#root').innerText();+ return [+ 'Failed to load core cron jobs: Not running in Tauri',+ 'No core cron jobs found.',+ MORNING_BRIEFING,+ ].some(marker => text.includes(marker));+ })+ .toBe(true);});test('refresh action is visible in the cron jobs panel', async ({ page }) => {