Skip to content

Commit

Permalink
Add spec for clicking taxon icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 18, 2016
1 parent a929f76 commit d46c168
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/spec/features/admin/taxons_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@

click_on('Add taxon')
expect(page).to have_content('New node')

# Little tricky to select the right taxon. Since the text is technically
# inside the top-level li.
within '#taxonomy_tree li li', text: 'New node' do
click_icon :edit
end

expect(page).to have_current_path %r{/admin/taxonomies/\d+/taxons/\d+/edit}
end
end

0 comments on commit d46c168

Please sign in to comment.