Files
github-ops 0fd3b7ba85
Deploy / deploy (push) Successful in 1m25s
CI / Rust Checks (push) Successful in 4m48s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 2s
CI / Frontend E2E (push) Successful in 4m15s
Fix agents e2e endpoint help assertion
2026-06-20 07:23:12 +00:00

24 lines
1.3 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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('Group MCP tools around concrete tasks', 'Старайтесь группировать MCP инструменты')
);
await expect(page.locator('.agent-card-date').first()).toContainText(
localized('Set this endpoint', 'Данный эндпоинт')
);
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('Describe the agent', 'Опишите агента')
);
await expect(page.locator('[data-i18n="agents.drawer.slug_hint"]')).toContainText(
localized('used as part of the endpoint', 'используется как часть endpoint-а')
);
await expect(page.locator('.drawer')).toContainText(/mcp/i);
});