From edb8da4b4d5f6a914074334585d2b20f1cf6081a Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 24 Apr 2023 18:31:19 +0100 Subject: [PATCH] Considers recent changes on login test helpers PR #10696 introduced changes on the login helpers which were not considered, when merging a recent PR; This broke the build --- spec/system/admin/variants_spec.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spec/system/admin/variants_spec.rb b/spec/system/admin/variants_spec.rb index db8a0f28c3..bac3770ebf 100644 --- a/spec/system/admin/variants_spec.rb +++ b/spec/system/admin/variants_spec.rb @@ -53,7 +53,9 @@ describe ' product = create(:simple_product, variant_unit: "volume", variant_unit_scale: "1") # When I create a variant on the product - login_as_admin_and_visit spree.admin_product_variants_path product + login_as_admin + visit spree.admin_product_variants_path product + click_link 'New Variant' # Expect variant_weight to accept 3 decimal places @@ -131,6 +133,7 @@ describe ' # When I view the variant login_as_admin visit spree.admin_product_variants_path product + page.find('table.index .icon-edit').click # Then I should not see a traditional option value field for the unit-related option value @@ -258,7 +261,9 @@ describe ' variant = product.variants.first # When I view the variant - login_as_admin_and_visit spree.admin_product_variants_path product + login_as_admin + visit spree.admin_product_variants_path product + page.find('table.index .icon-edit').click # It should allow the weight to be changed