mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user