Files
crank/apps/ui/tests/e2e/agents.spec.js
T
github-ops ba29ac7b94
Deploy / deploy (push) Successful in 2m44s
CI / Rust Checks (push) Successful in 5m31s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 2s
CI / Frontend E2E (push) Successful in 4m24s
chore: publish clean community baseline
2026-06-19 16:45:51 +00:00

20 lines
1.2 KiB
JavaScript

const { test, expect } = require('@playwright/test');
const { login, localized } = require('./helpers');
test('agents page shows demo cards and edit drawer opens', async ({ page }) => {
await login(page);
await page.goto('/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('.agent-card-date').first()).toContainText(
localized('API Keys page', 'API Keys')
);
await page.getByRole('button', { name: localized('New agent', 'Новый агент') }).click();
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('[data-i18n="agents.drawer.slug_hint"]')).toContainText(
localized('Keep the slug stable', 'Сохраняйте slug стабильным')
);
await expect(page.locator('.drawer')).toContainText(/mcp/i);
});