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
This commit is contained in:
filipefurtad0
2023-04-24 18:31:19 +01:00
parent 00d5bd9165
commit edb8da4b4d

View File

@@ -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