Update e2e expectations for community UI copy
This commit is contained in:
@@ -13,11 +13,10 @@ 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 agent keys', 'статические ключи')
|
||||
);
|
||||
await expect(page.locator('#machine-access-note')).toContainText(
|
||||
localized('commercial edition', 'коммерческую редакцию')
|
||||
await expect(page.locator('[data-testid="machine-access-summary"]')).toHaveCount(0);
|
||||
await expect(page.locator('#machine-access-note')).toHaveCount(0);
|
||||
await expect(page.locator('[data-i18n="apikeys.agent.subtitle"]')).toContainText(
|
||||
localized('Select the AI agent this key is issued for', 'Выберите AI-агента')
|
||||
);
|
||||
await expect(page.locator('#agent-select')).not.toBeDisabled();
|
||||
await expect(page.locator('#btn-create-key')).toBeEnabled();
|
||||
|
||||
Reference in New Issue
Block a user