Fix failed test

This commit is contained in:
Bing Xie
2016-05-31 10:50:28 +10:00
parent 18a8efed5f
commit c83952571f

View File

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