Removes line break in assertion

This commit is contained in:
filipefurtad0
2021-12-07 17:26:06 +00:00
parent 5a77ee75e1
commit 7f39a1e1d6

View File

@@ -92,8 +92,8 @@ describe "shopping with variant overrides defined", js: true do
it "calculates fees correctly" do
page.find("#variant-#{product1_variant1.id} .graph-button").click
byebug
expect(page).to have_selector 'li', text: "#{with_currency(55.55)}\nItem cost"
expect(page).to have_selector 'li', text: "#{with_currency(5.56)}\nPacking fee"
expect(page).to have_selector 'li', text: "#{with_currency(55.55)} Item cost"
expect(page).to have_selector 'li', text: "#{with_currency(5.56)} Packing fee"
expect(page).to have_selector 'li', text: "= #{with_currency(61.11)}"
end