mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 21:41:16 +00:00
2021af051c
Updated unicorn and capistrano deployment configuration for the staging environment HTML formatting Fixes errors when posting new issues Added Google Calendar client code CSS tweaks to layout Added new .env vars Layout tweaks Updated contributors
21 lines
No EOL
526 B
Ruby
21 lines
No EOL
526 B
Ruby
module Features
|
|
module SessionHelpers
|
|
def sign_in_as(user)
|
|
visit root_path
|
|
|
|
fill_in "login_username", with: user.username
|
|
fill_in "login_password", with: user.raw_password
|
|
|
|
click_button I18n.t('helpers.submit.user.login')
|
|
end
|
|
|
|
def change_timezone_for(user, timezone)
|
|
visit edit_user_path(user.id)
|
|
|
|
click_link I18n.t('profile.locals')
|
|
find("option[value='#{timezone}']").select_option
|
|
|
|
click_button I18n.t('helpers.submit.user.update')
|
|
end
|
|
end
|
|
end |