diff --git a/app/views/spree/admin/orders/_form/_adjustments.html.haml b/app/views/spree/admin/orders/_form/_adjustments.html.haml index e88819b1ac..8dfb0c37c5 100644 --- a/app/views/spree/admin/orders/_form/_adjustments.html.haml +++ b/app/views/spree/admin/orders/_form/_adjustments.html.haml @@ -6,7 +6,7 @@ %tr %th= Spree.t('name') %th= Spree.t('amount') - %tbody#order-charges.with-border + %tbody.with-border - adjustments.each do |adjustment| - if (adjustment.originator_type != 'Spree::ShippingMethod') && !(adjustment.originator_type == 'Spree::TaxRate' && adjustment.amount == 0) %tr.total diff --git a/spec/features/admin/orders_spec.rb b/spec/features/admin/orders_spec.rb index dc8b654be8..8d387b2678 100644 --- a/spec/features/admin/orders_spec.rb +++ b/spec/features/admin/orders_spec.rb @@ -267,7 +267,7 @@ feature %q{ end scenario "shows the order tax adjustments" do - within('tbody#order-charges') do + within('fieldset', text: 'LINE ITEM ADJUSTMENTS') do expect(page).to have_selector "td", match: :first, text: "Tax 1" expect(page).to have_selector "td.total", text: Spree::Money.new(10) end