Skip to content

Commit

Permalink
Adds payment with check test case
Browse files Browse the repository at this point in the history
  • Loading branch information
filipefurtad0 committed Jan 21, 2022
1 parent cb4d788 commit 2f85f75
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/system/consumer/split_checkout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,21 @@
end
end

context "payment step" do
let(:order) { create(:order_ready_for_payment, distributor: distributor) }
describe "selecting a Cash payment method" do

before do
choose "Check"
end

it "selects cash and proceeds to the summary step" do
click_on "Next - Order summary"
expect(page).to have_content "Shopping @ #{distributor.name}"
end
end
end

context "summary step" do
let(:order) { create(:order_ready_for_confirmation, distributor: distributor) }

Expand Down

0 comments on commit 2f85f75

Please sign in to comment.