From 2aa3f8eb892ceb02671f472a941617f09a3b91cd Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 8 Jun 2023 20:05:51 +0100 Subject: [PATCH] Fix flaky test --- spec/system/consumer/split_checkout_tax_not_incl_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/system/consumer/split_checkout_tax_not_incl_spec.rb b/spec/system/consumer/split_checkout_tax_not_incl_spec.rb index 5d9f9bcd5b..046a6ac483 100644 --- a/spec/system/consumer/split_checkout_tax_not_incl_spec.rb +++ b/spec/system/consumer/split_checkout_tax_not_incl_spec.rb @@ -127,9 +127,11 @@ describe "As a consumer, I want to see adjustment breakdown" do choose "Delivery" click_button "Next - Payment method" + # add Voucher fill_in "Enter voucher code", with: voucher.code click_button("Apply") + expect(page).to have_selector ".voucher-added" click_on "Next - Order summary" click_on "Complete order"