/
Dmitry-F
/
cbt_tool
Обзор
Документация
Войти
/
Dmitry-F
/
cbt_tool
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
python-ml-service
test/system/auth_test.rb
23 строки
630 B
Dmitriy-Filatov
feat: аудиозапись в СМЭР-дневнике
28 мар 2026, 05:27
28 мар 2026, 05:27
7b7c12e
Код
Авторство
О чём код?
require "application_system_test_case" class AuthTest < ApplicationSystemTestCase include FactoryBot::Syntax::Methods def setup @therapist = create(:therapist, email: "test@example.com", password: "password123") end test "therapist can sign in and sign out" do visit auth_signin_path fill_in "email", with: @therapist.email fill_in "password", with: "password123" click_button "Войти" assert_current_path clients_path, wait: 10 assert_text "Вы вошли" click_button "Выход" if page.has_button?("Выход") assert_current_path auth_signin_path, wait: 10 end end