Skip to content

Commit

Permalink
Make capybara await the presence of the .chat-input before #find-ing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjtko committed Mar 14, 2013
1 parent 9ea95bc commit 6f2b972
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/features/login_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
page.should have_content(@user.first_name)
page.should have_content(@user.last_name)

expect(page).to have_css('.chat-input')
chat_input = find(:css, ".chat-input")
chat_input.set "Hello there"
click_button "Post"
Expand Down

0 comments on commit 6f2b972

Please sign in to comment.