This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-04-15 01:21:02 +02:00
|
|
|
require "rails_helper"
|
|
|
|
|
|
|
|
feature "Log in" do
|
|
|
|
scenario "A valid email and password user is able to log in" do
|
|
|
|
email = "test@example.com"
|
|
|
|
password = "password"
|
|
|
|
Fabricate(:user, email: email, password: password)
|
|
|
|
|
|
|
|
visit new_user_session_path
|
|
|
|
fill_in "user_email", with: email
|
|
|
|
fill_in "user_password", with: password
|
|
|
|
click_on "Log in"
|
|
|
|
|
2017-05-03 02:04:16 +02:00
|
|
|
expect(page).to have_css "div.app-holder"
|
2017-04-15 01:21:02 +02:00
|
|
|
end
|
|
|
|
end
|