Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "spec_helper"
- feature "Authentication" do
- before do
- Traver.create(user: { email: "walter@white.com", password: "walter" })
- end
- let(:login_page) { LoginPage.new }
- scenario "User logs in successfully by entering email and password" do
- login_page.visit
- login_page.fill_login_form(email: "walter@white.com", password: "password")
- login_page.login
- expect(login_page).to login_successfully
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement