Advertisement
Guest User

Untitled

a guest
May 18th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. require "spec_helper"
  2.  
  3. feature "Authentication" do
  4. before do
  5. Traver.create(user: { email: "walter@white.com", password: "walter" })
  6. end
  7.  
  8. let(:login_page) { LoginPage.new }
  9.  
  10. scenario "User logs in successfully by entering email and password" do
  11. login_page.visit
  12. login_page.fill_login_form(email: "walter@white.com", password: "password")
  13. login_page.login
  14.  
  15. expect(login_page).to login_successfully
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement