From 968bf882c402eb6259d5b8350a6a05eb3674a767 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 7 Jun 2023 00:33:27 +0100 Subject: [PATCH] Fix flaky spec --- spec/system/admin/order_spec.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index 6bc7a63b13..93d098b31c 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -409,14 +409,7 @@ describe ' fill_in "order_bill_address_attributes_city", with: "Kansas" fill_in "order_bill_address_attributes_zipcode", with: "SP1 M11" - # The country is already selected and we avoid re-selecting it here - # because it would trigger an API call which we would need to wait for - # while we have no visual indicator for the wait. - # - # Ideally, we would implement a visual cue like disable the state field - # while the data is fetched from the API. - # - # select "Australia", from: "order_bill_address_attributes_country_id" + select "Australia", from: "order_bill_address_attributes_country_id" select "Victoria", from: "order_bill_address_attributes_state_id" fill_in "order_bill_address_attributes_phone", with: "111 1111 1111"