Update e2e expectations for community UI copy
Deploy / deploy (push) Successful in 1m24s
CI / Rust Checks (push) Successful in 4m59s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 3s
CI / Frontend E2E (push) Failing after 4m39s

This commit is contained in:
github-ops
2026-06-20 07:09:23 +00:00
parent f2ee01e21d
commit f36520e57c
2 changed files with 12 additions and 9 deletions
+8 -4
View File
@@ -5,15 +5,19 @@ test('agents page shows demo cards and edit drawer opens', async ({ page }) => {
await login(page); await login(page);
await page.goto('/agents'); await page.goto('/agents');
await expect(page.locator('.page-heading')).toHaveText(localized('Agents', 'Агенты')); await expect(page.locator('.page-heading')).toHaveText(localized('Agents', 'Агенты'));
await expect(page.locator('.agents-info-callout')).toContainText(localized('static agent keys', 'статические ключи агента')); await expect(page.locator('.agents-info-callout')).toContainText(
localized('Group MCP tools around concrete tasks', 'Старайтесь группировать MCP инструменты')
);
await expect(page.locator('.agent-card-date').first()).toContainText( await expect(page.locator('.agent-card-date').first()).toContainText(
localized('API Keys page', 'API Keys') localized('MCP endpoint', 'Данный эндпоинт')
); );
await page.getByRole('button', { name: localized('New agent', 'Новый агент') }).click(); await page.getByRole('button', { name: localized('New agent', 'Новый агент') }).click();
await expect(page.locator('.drawer-title')).toHaveText(localized('New agent', 'Новый агент')); await expect(page.locator('.drawer-title')).toHaveText(localized('New agent', 'Новый агент'));
await expect(page.locator('.drawer-subtitle')).toContainText(localized('static agent-key boundary', 'статических ключах агента')); await expect(page.locator('.drawer-subtitle')).toContainText(
localized('Describe the agent', 'Опишите агента')
);
await expect(page.locator('[data-i18n="agents.drawer.slug_hint"]')).toContainText( await expect(page.locator('[data-i18n="agents.drawer.slug_hint"]')).toContainText(
localized('Keep the slug stable', 'Сохраняйте slug стабильным') localized('used as part of the endpoint', 'используется как часть endpoint-а')
); );
await expect(page.locator('.drawer')).toContainText(/mcp/i); await expect(page.locator('.drawer')).toContainText(/mcp/i);
}); });
+4 -5
View File
@@ -13,11 +13,10 @@ test('api keys page opens create key flow', async ({ page }) => {
}); });
await page.goto('/api-keys'); await page.goto('/api-keys');
await expect(page.locator('.page-title')).toHaveText(localized('Agent Keys', 'Ключи агентов')); await expect(page.locator('.page-title')).toHaveText(localized('Agent Keys', 'Ключи агентов'));
await expect(page.locator('[data-testid="machine-access-summary"]')).toContainText( await expect(page.locator('[data-testid="machine-access-summary"]')).toHaveCount(0);
localized('static agent keys', 'статические ключи') await expect(page.locator('#machine-access-note')).toHaveCount(0);
); await expect(page.locator('[data-i18n="apikeys.agent.subtitle"]')).toContainText(
await expect(page.locator('#machine-access-note')).toContainText( localized('Select the AI agent this key is issued for', 'Выберите AI-агента')
localized('commercial edition', 'коммерческую редакцию')
); );
await expect(page.locator('#agent-select')).not.toBeDisabled(); await expect(page.locator('#agent-select')).not.toBeDisabled();
await expect(page.locator('#btn-create-key')).toBeEnabled(); await expect(page.locator('#btn-create-key')).toBeEnabled();