Skip to content

Commit

Permalink
Using node.trigger as suggested by travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Anusha Ranganathan committed Jun 19, 2016
1 parent 53bdeb5 commit 439a304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/bookmark_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
click_button 'search'
expect(page).to have_css('form.pull-right[data-doc-id="jr903ng8662"] div.checkbox.toggle_bookmark label.toggle_bookmark span', text: 'bookmark')
b = page.find('form.pull-right[data-doc-id="jr903ng8662"] div.checkbox.toggle_bookmark label.toggle_bookmark span')
b.click
b.trigger('click')
sleep 1
# Bookmark is through ajax call, so should not see successfult message
# expect(page).to have_content 'Successfully added bookmark.'
Expand All @@ -19,7 +19,7 @@
click_button 'search'
expect(page).to have_css('form.pull-right[data-doc-id="jr903ng8662"] div.checkbox.toggle_bookmark label.toggle_bookmark span', text: 'bookmarked')
b = page.find('form.pull-right[data-doc-id="jr903ng8662"] div.checkbox.toggle_bookmark label.toggle_bookmark span')
b.click
b.trigger('click')
sleep 1
expect(page).to have_css('form.pull-right[data-doc-id="jr903ng8662"] label.toggle_bookmark span', text: 'bookmark')
end
Expand Down

0 comments on commit 439a304

Please sign in to comment.