ui: gate machine access modes on api keys page

This commit is contained in:
a.tolmachev
2026-05-03 18:59:17 +00:00
parent 46f8e6cbeb
commit 076cead491
6 changed files with 93 additions and 1 deletions
+6
View File
@@ -13,6 +13,12 @@ test('api keys page opens create key flow', async ({ page }) => {
});
await page.goto('/api-keys');
await expect(page.locator('.page-title')).toHaveText(localized('Agent Keys', 'Ключи агентов'));
await expect(page.locator('[data-testid="machine-access-summary"]')).toContainText(
localized('static AI-agent keys', 'статические ключи AI-агентов')
);
await expect(page.locator('#machine-access-note')).toContainText(
localized('commercial edition', 'коммерческую редакцию')
);
await expect(page.locator('#agent-select')).not.toBeDisabled();
await expect(page.locator('#btn-create-key')).toBeEnabled();
await page.locator('#btn-create-key').click();