diff --git a/spec/system/consumer/split_checkout_spec.rb b/spec/system/consumer/split_checkout_spec.rb index 88e3caca77..f0b3f0446d 100644 --- a/spec/system/consumer/split_checkout_spec.rb +++ b/spec/system/consumer/split_checkout_spec.rb @@ -455,9 +455,8 @@ describe "As a consumer, I want to checkout my order", js: true do shared_examples "displays the shipping fee" do |checkout_page| it "on the #{checkout_page} page" do - within ".summary-right" do - expect(page).to have_content("Shipping #{with_currency(4.56)}") - end + expect(page).to have_content("Shipping #{with_currency(4.56)}") + if checkout_page.eql?("order confirmation") expect(page).to have_content "Your order has been processed successfully" end @@ -588,9 +587,8 @@ describe "As a consumer, I want to checkout my order", js: true do shared_examples "displays the transaction fee" do |checkout_page| it "on the #{checkout_page} page" do - within ".summary-right" do - expect(page).to have_content("Transaction fee #{with_currency(1.23)}") - end + expect(page).to have_content("Transaction fee #{with_currency(1.23)}") + if checkout_page.eql?("order confirmation") expect(page).to have_content "Your order has been processed successfully" end