end fase 2

This commit is contained in:
2026-01-15 00:18:35 +03:00
parent 85e7966c97
commit 739a7d172d
63 changed files with 3194 additions and 322 deletions

View File

@ -3,11 +3,15 @@ import { test as setup, expect } from '@playwright/test';
const authFile = 'playwright/.auth/user.json';
setup('authenticate', async ({ page }) => {
// Переходим на главную - редирект на Keycloak
// Переходим на главную
await page.goto('/');
// Кликаем на кнопку "Войти" на странице приложения
const loginButton = page.getByRole('button', { name: /войти/i });
await loginButton.click();
// Ждём страницу логина Keycloak
await page.waitForURL(/auth\.vigdorov\.ru/, { timeout: 10000 });
await page.waitForURL(/auth\.vigdorov\.ru/, { timeout: 15000 });
// Вводим креды
await page.getByRole('textbox', { name: 'Username or email' }).fill('testuser');