Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Then /I should see a successful result/ do
- # pause to be extra sure we're not failing for stupid reasons
- sleep 1
- page.evaluate_script("$('#log').text();").should match(/success/)
- end
- Then /the input field should have focus/ do
- page.evaluate_script("$('#inpt').is(':focus')").should be_true
- page.evaluate_script("$(':focus')[0] === $('#inpt')[0]").should be_true
- end
Add Comment
Please, Sign In to add comment