Guest User

Untitled

a guest
Jan 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Then /I should see a successful result/ do
  2. # pause to be extra sure we're not failing for stupid reasons
  3. sleep 1
  4. page.evaluate_script("$('#log').text();").should match(/success/)
  5. end
  6.  
  7. Then /the input field should have focus/ do
  8. page.evaluate_script("$('#inpt').is(':focus')").should be_true
  9. page.evaluate_script("$(':focus')[0] === $('#inpt')[0]").should be_true
  10. end
Add Comment
Please, Sign In to add comment