Sha256: c8db13a1ca57e3b18f646e24f3e754cc3a9d2a7af5ccfd0a059acc2df645d71a
Contents?: true
Size: 568 Bytes
Versions: 20
Compression:
Stored size: 568 Bytes
Contents
# frozen_string_literal: true module Features module SessionHelpers def sign_up_with(email, password) visit new_user_registration_path fill_in 'Email', with: email fill_in 'Password', with: password click_button 'Sign up' end def sign_in user = FactoryBot.create(:user) user.save visit new_user_session_path fill_in 'user_email', with: user.email fill_in 'user_password', with: user.password click_button 'Log in' expect(page).to have_content 'Signed in successfully.' end end end
Version data entries
20 entries across 20 versions & 1 rubygems