The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop-e2e): run the mock-provider suite gate-free (approvals off)
Tekniumc64054a26b39
diff --git a/apps/desktop/e2e/fixtures.ts b/apps/desktop/e2e/fixtures.tsindex 3d249fd1add..70beb360aee 100644--- a/apps/desktop/e2e/fixtures.ts+++ b/apps/desktop/e2e/fixtures.ts@@ -181,6 +181,18 @@ export function writeMockProviderConfig(? '': 'auxiliary:\n title_generation:\n enabled: false\n'+ // The scripted turns run REAL terminal commands, and anything the guard+ // classifies as dangerous (e.g. the sidebar sentinel-wait loop) parks the+ // turn behind a Run/Reject approval card. The default 'smart' mode then+ // fires an aux LLM approval call at the SAME mock provider — consuming a+ // scripted-turn index and never resolving — so the turn stalls until the+ // spec times out (the CI failure mode for the sidebar-dot family). No e2e+ // spec asserts on the approval flow, so run gate-free by default; a test+ // that passes its own `approvals:` section via extraConfig owns it.+ const approvalsDefault = extraConfig?.includes('approvals:')+ ? ''+ : 'approvals:\n mode: "off"\n'+const config = `# Auto-generated by E2E test fixturesmodel:default: mock-model@@ -194,7 +206,7 @@ ${modelContextLength ? ` context_length: ${modelContextLength}\n` : ''}providermodels:mock-model: {}context_length: 4096-${autoTitleDefault}${displaySection}${extraConfig ? `\n${extraConfig.trim()}\n` : ''}`+${autoTitleDefault}${approvalsDefault}${displaySection}${extraConfig ? `\n${extraConfig.trim()}\n` : ''}`fs.writeFileSync(configPath, config, 'utf8')}diff --git a/apps/desktop/e2e/tile-unread-bug.spec.ts b/apps/desktop/e2e/tile-unread-bug.spec.tsindex 379abda9ad5..00fc1b43cad 100644--- a/apps/desktop/e2e/tile-unread-bug.spec.ts+++ b/apps/desktop/e2e/tile-unread-bug.spec.ts@@ -101,19 +101,7 @@ async function startTurnAndSwitchAway(page: import('@playwright/test').Page) {// after the running dot clears.await expect.poll(- async () => {- const labels = await page.evaluate(() =>- Array.from(document.querySelectorAll('[role="status"],[aria-label]')).map(- el => `${el.tagName}:${el.getAttribute('aria-label')}`,- ),- )- console.log('DOT-DEBUG labels:', JSON.stringify(labels))- const sidebarText = await page.evaluate(- () => document.querySelector('[data-slot="sidebar"]')?.textContent?.slice(0, 300) ?? 'NO-SIDEBAR',- )- console.log('DOT-DEBUG sidebar:', JSON.stringify(sidebarText))- return page.locator(`[aria-label="${BG_DOT_LABEL}"]`).count()- },+ () => page.locator(`[aria-label="${BG_DOT_LABEL}"]`).count(),{ timeout: 30_000, message: 'background dot should be visible after turn completes' },).toBeGreaterThan(0)