From fb08759bec93f21ff1b585b949a80fdec01a0293 Mon Sep 17 00:00:00 2001 From: Bing Xie Date: Fri, 21 Oct 2016 14:45:04 +1100 Subject: [PATCH] Add more tests --- spec/features/admin/customers_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/features/admin/customers_spec.rb b/spec/features/admin/customers_spec.rb index 7a7fa2ba4e..1008482871 100644 --- a/spec/features/admin/customers_spec.rb +++ b/spec/features/admin/customers_spec.rb @@ -78,6 +78,8 @@ feature 'Customers' do select2_select managed_distributor1.name, from: "shop_id" within "tr#c_#{customer1.id}" do + find_field('name').value.should eq 'John Doe' + fill_in "code", with: "new-customer-code" expect(page).to have_css "input[name=code].update-pending" @@ -161,6 +163,10 @@ feature 'Customers' do first('#bill-address-link').click expect(page).to have_content 'Edit Billing Address' + + expect(page).to have_select('country', selected: 'Australia') + expect(page).to have_select('state', selected: 'Victoria') + fill_in 'address1', with: "New Address1" click_button 'Update Address'