Sha256: 6fd50ffd22ae9f78e887aabec02589e40061db9b143f25c683aeedeacca13c98
Contents?: true
Size: 595 Bytes
Versions: 5
Compression:
Stored size: 595 Bytes
Contents
module FeatureHelpers # https://code.tutsplus.com/articles/ruby-page-objects-for-capybara-connoisseurs--cms-25204 def sign_in_as(email, password) # visit root_path # fill_in 'Email', with: email # click_button 'Submit' Capybara.raise_server_errors = false # above needed to prevent this error: # No route matches [GET] "/assets/icons/ellipsis.png" visit('/admin') # puts current_url # require 'pry'; binding.pry # save_and_open_page fill_in('Email', with: email) fill_in('Password', with: password) click_button('Sign in') end end
Version data entries
5 entries across 5 versions & 1 rubygems