You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
416 B

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"
expect(page).to have_css "div.app-holder"
end
end