mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Fix failed test
This commit is contained in:
@@ -195,25 +195,25 @@ feature 'Tag Rules', js: true do
|
||||
expect(default_fsm_tag_rule.preferred_matched_shipping_methods_visibility).to eq "hidden"
|
||||
|
||||
# FilterShippingMethods rule
|
||||
expect(fsm_tag_rule.reload.priority).to eq 1
|
||||
expect(fsm_tag_rule.reload.priority).to eq 4
|
||||
expect(fsm_tag_rule.preferred_customer_tags).to eq "volunteer"
|
||||
expect(fsm_tag_rule.preferred_shipping_method_tags).to eq "volunteers-only4"
|
||||
expect(fsm_tag_rule.preferred_matched_shipping_methods_visibility).to eq "visible"
|
||||
|
||||
# FilterProducts rule
|
||||
expect(fp_tag_rule.reload.priority).to eq 2
|
||||
expect(fp_tag_rule.reload.priority).to eq 1
|
||||
expect(fp_tag_rule.preferred_customer_tags).to eq "volunteer"
|
||||
expect(fp_tag_rule.preferred_variant_tags).to eq "volunteers-only1"
|
||||
expect(fp_tag_rule.preferred_matched_variants_visibility).to eq "hidden"
|
||||
|
||||
# FilterPaymentMethods rule
|
||||
expect(fpm_tag_rule.reload.priority).to eq 3
|
||||
expect(fpm_tag_rule.reload.priority).to eq 2
|
||||
expect(fpm_tag_rule.preferred_customer_tags).to eq "volunteer"
|
||||
expect(fpm_tag_rule.preferred_payment_method_tags).to eq "volunteers-only2"
|
||||
expect(fpm_tag_rule.preferred_matched_payment_methods_visibility).to eq "visible"
|
||||
|
||||
# FilterOrderCycles rule
|
||||
expect(foc_tag_rule.reload.priority).to eq 4
|
||||
expect(foc_tag_rule.reload.priority).to eq 3
|
||||
expect(foc_tag_rule.preferred_customer_tags).to eq "volunteer"
|
||||
expect(foc_tag_rule.preferred_exchange_tags).to eq "volunteers-only3"
|
||||
expect(foc_tag_rule.preferred_matched_order_cycles_visibility).to eq "hidden"
|
||||
|
||||
Reference in New Issue
Block a user