diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index a77fe8a47c..8920571aca 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -219,7 +219,15 @@ describe ' fill_in "order_bill_address_attributes_address1", with: "xxx" fill_in "order_bill_address_attributes_city", with: "xxx" fill_in "order_bill_address_attributes_zipcode", with: "xxx" - select "Australia", from: "order_bill_address_attributes_country_id" + + # 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 "Victoria", from: "order_bill_address_attributes_state_id" fill_in "order_bill_address_attributes_phone", with: "xxx"