feat: integrate competence map analytics

This commit is contained in:
Gleb Korotkiy
2026-06-21 01:56:39 +03:00
parent 75e9616bcb
commit cf1fbb1b55
398 changed files with 36927 additions and 514 deletions

View File

@@ -1,12 +1,16 @@
import { expect, test } from '@playwright/test'
test('opens dashboard and navigates to reports', async ({ page }) => {
await page.goto('/')
test('redirects protected pages to auth and validates login form locally', async ({ page }) => {
await page.goto('/dashboard')
await expect(page.getByRole('heading', { name: 'Аналитическая панель' })).toBeVisible()
await expect(page).toHaveURL(/\/auth/)
await expect(page.getByRole('heading', { name: 'Вход в личный кабинет' })).toBeVisible()
await expect(page.locator('#auth-username')).toBeVisible()
await expect(page.locator('#auth-password')).toBeVisible()
await expect(page.getByRole('button', { name: 'Войти' })).toBeVisible()
await page.getByRole('link', { name: 'Отчеты' }).click()
await page.getByRole('button', { name: 'Войти' }).click()
await expect(page.getByRole('heading', { name: 'Отчеты' })).toBeVisible()
await expect(page.getByRole('cell', { name: 'Еженедельная динамика' })).toBeVisible()
await expect(page.getByText('Введите логин')).toBeVisible()
await expect(page.getByText('Введите пароль')).toBeVisible()
})