From 85a41205e905b568c0254651fe43783e07eee62b Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 7 Dec 2021 16:23:52 +0000 Subject: [PATCH 1/5] Moves/Updates products_spec into system --- spec/{features => system}/consumer/shopping/products_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename spec/{features => system}/consumer/shopping/products_spec.rb (99%) diff --git a/spec/features/consumer/shopping/products_spec.rb b/spec/system/consumer/shopping/products_spec.rb similarity index 99% rename from spec/features/consumer/shopping/products_spec.rb rename to spec/system/consumer/shopping/products_spec.rb index d49fe56621..cd8417ab66 100644 --- a/spec/features/consumer/shopping/products_spec.rb +++ b/spec/system/consumer/shopping/products_spec.rb @@ -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 From 28698ab3bd649d6ef20e5b4c4f0f9b61cef9e924 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 7 Dec 2021 16:25:21 +0000 Subject: [PATCH 2/5] Moves/Updates unit_price_spec into system --- spec/{features => system}/consumer/shopping/unit_price_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename spec/{features => system}/consumer/shopping/unit_price_spec.rb (99%) diff --git a/spec/features/consumer/shopping/unit_price_spec.rb b/spec/system/consumer/shopping/unit_price_spec.rb similarity index 99% rename from spec/features/consumer/shopping/unit_price_spec.rb rename to spec/system/consumer/shopping/unit_price_spec.rb index 99b7b2c743..c134dd4f4d 100644 --- a/spec/features/consumer/shopping/unit_price_spec.rb +++ b/spec/system/consumer/shopping/unit_price_spec.rb @@ -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 From 5a77ee75e158cd73d1a2be25fe5a8d670c962f7a Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 7 Dec 2021 16:35:19 +0000 Subject: [PATCH 3/5] Moves/Updates variant_override_spec into system --- .../consumer/shopping/variant_overrides_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename spec/{features => system}/consumer/shopping/variant_overrides_spec.rb (99%) diff --git a/spec/features/consumer/shopping/variant_overrides_spec.rb b/spec/system/consumer/shopping/variant_overrides_spec.rb similarity index 99% rename from spec/features/consumer/shopping/variant_overrides_spec.rb rename to spec/system/consumer/shopping/variant_overrides_spec.rb index f44e84bfdb..366e7d89ae 100644 --- a/spec/features/consumer/shopping/variant_overrides_spec.rb +++ b/spec/system/consumer/shopping/variant_overrides_spec.rb @@ -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,6 +91,7 @@ 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(61.11)}" From 7f39a1e1d6bc10e8f0626db81a0ab3e8f52a5cd1 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 7 Dec 2021 17:26:06 +0000 Subject: [PATCH 4/5] Removes line break in assertion --- spec/system/consumer/shopping/variant_overrides_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/consumer/shopping/variant_overrides_spec.rb b/spec/system/consumer/shopping/variant_overrides_spec.rb index 366e7d89ae..c6abbcb14e 100644 --- a/spec/system/consumer/shopping/variant_overrides_spec.rb +++ b/spec/system/consumer/shopping/variant_overrides_spec.rb @@ -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 From 9565400ee0a5757adf688071812284bd0120ac34 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 7 Dec 2021 17:30:58 +0000 Subject: [PATCH 5/5] Removes typo, deletes byebug --- spec/system/consumer/shopping/variant_overrides_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/system/consumer/shopping/variant_overrides_spec.rb b/spec/system/consumer/shopping/variant_overrides_spec.rb index c6abbcb14e..1248c32ff2 100644 --- a/spec/system/consumer/shopping/variant_overrides_spec.rb +++ b/spec/system/consumer/shopping/variant_overrides_spec.rb @@ -91,7 +91,6 @@ 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)} 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)}"