Skip to content

Commit

Permalink
Improve reliability of capybara tests. Travis gets a number of sporad…
Browse files Browse the repository at this point in the history
…ic failures.
  • Loading branch information
steveyken committed Jul 2, 2013
1 parent b907e0a commit 4f6a0b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/features/accounts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
fill_in 'comment_body', :with => 'This account is very important'
click_button 'Create Account'

page.should have_content('My new account')
find('div#accounts').should have_content('My new account')
find('div#accounts').click_link('My new account') # avoid recent items link
page.should have_content('+1 2345 6789')
page.should have_content('http://www.example.com')
Expand Down
2 changes: 1 addition & 1 deletion spec/features/leads_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
click_link('Status')
select 'Rejected', :from => 'lead_status'
click_button 'Save Lead'
page.should have_content('Mrs Lead')
find('#title').should have_content('Mrs Lead')
click_link "Dashboard"
page.should have_content("Bill Murray updated lead Mrs Lead")
end
Expand Down
2 changes: 1 addition & 1 deletion spec/features/tasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

click_filter_tab('Assigned')
page.check('filters_due_tomorrow')
page.should have_content('Task For Someone Else')
find('#main').should have_content('Task For Someone Else')
page.should have_content('Another User')

click_link 'Dashboard'
Expand Down

0 comments on commit 4f6a0b3

Please sign in to comment.