Run transpec in spec/features/admin/adjustments_spec

This commit is contained in:
luisramos0
2019-05-10 14:00:22 +01:00
parent 6a0925539f
commit 7f43a66fb3

View File

@@ -34,9 +34,9 @@ feature '
click_button 'Continue'
# Then I should see the adjustment, with the correct tax
page.should have_selector 'td.label', text: 'Late fee'
page.should have_selector 'td.amount', text: '110'
page.should have_selector 'td.included-tax', text: '10'
expect(page).to have_selector 'td.label', text: 'Late fee'
expect(page).to have_selector 'td.amount', text: '110'
expect(page).to have_selector 'td.included-tax', text: '10'
end
scenario "modifying taxed adjustments on an order" do
@@ -59,8 +59,8 @@ feature '
click_button 'Continue'
# Then the adjustment tax should be cleared
page.should have_selector 'td.amount', text: '110'
page.should have_selector 'td.included-tax', text: '0'
expect(page).to have_selector 'td.amount', text: '110'
expect(page).to have_selector 'td.included-tax', text: '0'
end
scenario "modifying an untaxed adjustment on an order" do
@@ -83,7 +83,7 @@ feature '
click_button 'Continue'
# Then the adjustment tax should be recalculated
page.should have_selector 'td.amount', text: '110'
page.should have_selector 'td.included-tax', text: '10'
expect(page).to have_selector 'td.amount', text: '110'
expect(page).to have_selector 'td.included-tax', text: '10'
end
end