Skip to content

Commit

Permalink
Merge pull request #1815 from tvdeyen/avoid-editing-payments-amount-d…
Browse files Browse the repository at this point in the history
…isplay

Remove click event from payments diplay amount
  • Loading branch information
jhawthorn authored Apr 5, 2017
2 parents b0dc0cc + ca5e4d9 commit 55c4eba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ PaymentRowView = Backbone.View.extend
"click .js-edit": "onEdit"
"click .js-save": "onSave"
"click .js-cancel": "onCancel"
"click .js-display-amount": "onEdit"

onEdit: (e) ->
e.preventDefault()
Expand Down
10 changes: 0 additions & 10 deletions backend/spec/features/admin/orders/payments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,6 @@
end
end

it 'allows the amount to be edited by clicking on the amount then saving' do
within_row(1) do
find('td.amount span').click
fill_in('amount', with: '$1.01')
click_icon(:save)
expect(page).to have_selector('td.amount span', text: '$1.01')
expect(payment.reload.amount).to eq(1.01)
end
end

it 'allows the amount change to be cancelled by clicking on the cancel button' do
within_row(1) do
click_icon(:edit)
Expand Down

0 comments on commit 55c4eba

Please sign in to comment.