const { test, expect } = require('@playwright/test'); const { login, localized } = require('./helpers'); test('workspace and settings pages show live session data', async ({ page }) => { await login(page); await page.goto('/workspace-setup'); await expect(page.locator('#section-members')).toBeVisible(); await expect(page.locator('#members-count-label')).toBeVisible(); await expect(page.locator('#pending-invites')).toBeVisible(); await page.goto('/settings'); await expect(page.locator('.page-title')).toHaveText(localized('Account settings', 'Настройки аккаунта')); await expect(page.locator('#settings-session-summary')).toBeVisible(); await expect(page.locator('#section-security')).toBeVisible(); await expect(page.locator('#settings-security-capability-title')).toContainText(localized('Community build', 'Редакция Community')); await expect(page.locator('#settings-security-capability-body')).toContainText(localized('static agent keys', 'статические ключи агентов')); await expect(page.locator('#settings-ws-protocol-hint')).toContainText(localized('REST / HTTP', 'REST / HTTP')); await expect(page.locator('#settings-notifications-capability-title')).toContainText(localized('Community build boundary', 'Граница редакции Community')); });