Sha256: a04ee488e29876dd6d9f71207ebd05b64b3125f4b5223afdfb3ddf0e39687cc8
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
module Harpiya module TestingSupport module AuthHelpers def log_in(email:, password:, remember_me: true) visit harpiya.login_path fill_in 'Email', with: email fill_in 'Password', with: password # Regression test for #1257 first('label', text: 'Remember me').click if remember_me click_button 'Log in' expect(page).to have_content 'Logged in successfully' end def log_out show_user_menu click_link 'LOG OUT' expect(page).to have_content 'Signed out successfully' end def show_user_menu find("button[aria-label='Show user menu']").click end def show_user_account within '#nav-bar' do show_user_menu click_link 'MY ACCOUNT' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harpiya_dev_tools-0.1.8 | lib/harpiya/testing_support/auth_helpers.rb |