From 35f89a975078960f9e752a0eea2c8a8ff20fd9c4 Mon Sep 17 00:00:00 2001 From: Dan Ingenthron Date: Sun, 15 Sep 2019 16:25:00 -0500 Subject: [PATCH] Update spec to prefill shipping category in Create form --- spec/features/admin/products_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/admin/products_spec.rb b/spec/features/admin/products_spec.rb index 1756cdc539..1565b3b546 100644 --- a/spec/features/admin/products_spec.rb +++ b/spec/features/admin/products_spec.rb @@ -32,6 +32,8 @@ feature ' click_link 'Products' click_link 'New Product' + expect(find_field('product_shipping_category_id').text).to eq(shipping_category.name) + select 'New supplier', from: 'product_supplier_id' fill_in 'product_name', with: 'A new product !!!' select "Weight (kg)", from: 'product_variant_unit_with_scale' @@ -40,7 +42,6 @@ feature ' fill_in 'product_price', with: '19.99' fill_in 'product_on_hand', with: 5 select 'Test Tax Category', from: 'product_tax_category_id' - select 'Test Shipping Category', from: 'product_shipping_category_id' page.find("div[id^='taTextElement']").native.send_keys('A description...') click_button 'Create'