Skip to content

Commit

Permalink
Add feature test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Tapia committed Jan 31, 2025
1 parent bd65229 commit 7e914f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/spec/features/admin/orders/payments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,21 @@
click_icon(:capture)
expect(page).not_to have_content('Cannot perform requested operation')
expect(page).to have_content('Payment Updated')
within_row(1) do
expect(page).to have_selector('.fa-reply')
end
end

it 'voids a check payment from a new order' do
click_icon(:void)
expect(page).to have_content('Payment Updated')
end

it 'voids refund option for incomplete payments' do
within_row(1) do
expect(page).not_to have_selector('.fa-reply')
end
end
end

it 'should list all captures for a payment' do
Expand Down

0 comments on commit 7e914f7

Please sign in to comment.