Sha256: 99d574680d6d7537393679d7714d82a787825f0e6da7729e0b8c7d3e6974d8e1

Contents?: true

Size: 711 Bytes

Versions: 5

Compression:

Stored size: 711 Bytes

Contents

module Features
  module SessionHelpers
    def sign_in(email, password)
      visit sign_in_path
      within '.form-inputs' do
        fill_in 'user_email', with: email
        fill_in 'user_password', with: password
      end

      click_button 'Log in'
    end

    def sign_up_with(first, last, email, password, password_confirmation)
      visit new_user_registration_path
      within '.form-inputs' do
        fill_in 'First name', with: first
        fill_in 'Last name', with: last

        fill_in 'Email', with: email
        fill_in 'user_password', with: password
        fill_in 'user_password_confirmation', with: password_confirmation
      end

      click_button 'Sign up'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voyage-1.44.0.14 lib/voyage/templates/specs/support/features/session_helpers.rb
voyage-1.44.0.13 lib/voyage/templates/specs/support/features/session_helpers.rb
voyage-1.44.0.11 lib/voyage/templates/specs/support/features/session_helpers.rb
voyage-1.44.0.12 lib/voyage/templates/specs/support/features/session_helpers.rb
voyage-1.44.0.10 lib/voyage/templates/specs/support/features/session_helpers.rb