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: mock skills registry search fixture
Steven Enamakelf622f575a0fa
diff --git a/app/test/playwright/specs/skills-search-install.spec.ts b/app/test/playwright/specs/skills-search-install.spec.tsindex 1e78c00508..94a2b4a3f3 100644--- a/app/test/playwright/specs/skills-search-install.spec.ts+++ b/app/test/playwright/specs/skills-search-install.spec.ts@@ -121,17 +121,38 @@ test.describe('Skills explorer — the search box debounces', () => {test.describe('Skills explorer — typing narrows what is on screen', () => {test('a query with no matches leaves no catalog rows', async ({ page }) => {- // A cold registry browse may need to refresh its upstream cache. Keep the- // test's own timeout above that request's budget so a slow-but-successful- // refresh is not mistaken for an empty catalog.- test.setTimeout(90_000);+ const entry = {+ id: 'fixture-skill',+ name: 'Fixture skill',+ description: 'A deterministic catalog fixture.',+ source: 'fixture',+ category: 'testing',+ author: null,+ version: null,+ tags: [],+ platforms: [],+ download_url: 'https://example.invalid/fixture',+ docs_path: null,+ commands: [],+ env_vars: [],+ license: null,+ };+ await page.route('**/rpc', async (route, request) => {+ const body = JSON.parse(request.postData() || '{}');+ if (!['openhuman.skill_registry_browse', 'openhuman.skill_registry_search'].includes(body.method)) {+ await route.continue();+ return;+ }+ const entries = body.params?.query ? [] : [entry];+ await route.fulfill({+ contentType: 'application/json',+ body: JSON.stringify({ jsonrpc: '2.0', id: body.id, result: { entries } }),+ });+ });await openSkillsTab(page, 'pw-skills-nomatch');- // Baseline: the catalog has something in it.- await expect(page.getByRole('row').first()).toBeVisible({ timeout: 20_000 });-const rows = page.locator('[data-testid^="registry-install-"]');- await expect(rows.first()).toBeVisible({ timeout: 45_000 });+ await expect(rows.first()).toBeVisible();await searchBox(page).fill('zzzz-no-such-skill-zzzz');// Any install button is a catalog row; none should survive this query.