Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bingxie committed Oct 21, 2016
1 parent a475586 commit fb08759
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/features/admin/customers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
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"

Expand Down Expand Up @@ -161,6 +163,10 @@
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'

Expand Down

0 comments on commit fb08759

Please sign in to comment.