diff --git a/spec/support/features/session_helpers.rb b/spec/support/features/session_helpers.rb index 0108546..bc76401 100755 --- a/spec/support/features/session_helpers.rb +++ b/spec/support/features/session_helpers.rb @@ -6,10 +6,19 @@ module Features fill_in "login_username", with: user.username fill_in "login_password", with: user.raw_password - click_button I18n.t("helpers.submit.user.login") + # click_button I18n.t("helpers.submit.user.login") + find('#authentication .login input').trigger('click') expect(page).to have_content(I18n.t('login_successful')) end + def sign_out + visit root_path + + # click_button I18n.t("helpers.submit.user.login") + find('a#logout').trigger('click') + expect(page).to have_content(I18n.t('login_out')) + end + def change_timezone_for(user, timezone) visit edit_user_path(user.id)