/
Dmitry-F
/
cbt_tool
Обзор
Документация
Войти
/
Dmitry-F
/
cbt_tool
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
python-ml-service
test/system/auth_debug_test.rb
32 строки
972 B
Dmitriy-Filatov
feat: аудиозапись в СМЭР-дневнике
28 мар 2026, 05:27
28 мар 2026, 05:27
7b7c12e
Код
Авторство
О чём код?
require "application_system_test_case" class AuthDebugTest < ApplicationSystemTestCase include FactoryBot::Syntax::Methods def setup @therapist = create(:therapist, email: "test@example.com", password: "password123") puts "✅ Терапевт создан: #{@therapist.email} / password123" end test "debug sign in" do visit auth_signin_path puts "1. Страница входа: #{current_path}" # Находим форму puts "2. Поле email: #{page.has_field?('email')}" puts "3. Поле password: #{page.has_field?('password')}" fill_in "email", with: @therapist.email fill_in "password", with: "password123" puts "4. Поля заполнены" click_button "Войти" puts "5. Кнопка нажата" sleep 2 puts "6. Текущий путь: #{current_path}" puts "7. HTML после входа: #{page.html[0..500]}" assert_current_path clients_path, wait: 10 end end