Merge pull request #8589 from filipefurtad0/shop_products_spec_into_system

Remaining shopping specs into system
This commit is contained in:
Maikel
2021-12-08 18:17:51 +11:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'spec_helper'
require 'system_helper'
describe "As a consumer I want to view products", js: true do
include AuthenticationHelper

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'spec_helper'
require 'system_helper'
describe "As a consumer, I want to check unit price information for a product", js: true do
include AuthenticationHelper

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'spec_helper'
require 'system_helper'
describe "shopping with variant overrides defined", js: true do
include AuthenticationHelper
@@ -91,8 +91,8 @@ describe "shopping with variant overrides defined", js: true do
it "calculates fees correctly" do
page.find("#variant-#{product1_variant1.id} .graph-button").click
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