Добавлены позитивные UI, API тесты для регистрации выпускника

This commit is contained in:
Vlad Smykov
2026-01-27 16:42:32 +03:00
parent b3417fa821
commit 94d7a97fe4
8 changed files with 166 additions and 87 deletions

View File

@@ -41,6 +41,9 @@ test('API: регистрация абитуриента + подтвержде
const registerRes = await axios.post(`${BASE_URL}/auth/register`, registerPayload);
expect(registerRes.status).toBe(201);
const userId = registerRes.data.id;
console.log('🆔 ID зарегистрированного пользователя:', userId);
} catch (error: any) {
console.error('❌ Ошибка регистрации:', error.response?.data || error.message);
throw error;