Skip to content

Commit

Permalink
Increase capybara wait time to 10s for locating .chat-input.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjtko committed Mar 16, 2013
1 parent c21ace8 commit 828cd54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/features/login_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
page.should have_content(@user.first_name)
page.should have_content(@user.last_name)

expect(page).to have_css('.chat-input')
using_wait_time(10) do
expect(page).to have_css('.chat-input')
end

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

0 comments on commit 828cd54

Please sign in to comment.