Skip to content

Commit

Permalink
Use find instead of first
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 18, 2015
1 parent 208ada9 commit fa70ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/spec/features/admin/stock_transfer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
visit spree.tracking_info_admin_stock_transfer_path(stock_transfer)
click_link 'ship'

first('#confirm-ship-link', visible: false).click
find('#confirm-ship-link', visible: false).click
expect(current_path).to eq spree.admin_stock_transfers_path
expect(stock_transfer.reload.shipped_at).to_not be_nil
end
Expand All @@ -95,7 +95,7 @@

click_link 'ship'

first('#confirm-ship-link', visible: false).click
find('#confirm-ship-link', visible: false).click
expect(current_path).to eq spree.tracking_info_admin_stock_transfer_path(stock_transfer)
expect(stock_transfer.reload.shipped_at).to be_nil
end
Expand Down

0 comments on commit fa70ad9

Please sign in to comment.