Updating Tag Rules UI to allow management of new FilterShippingMethods rule type

This commit is contained in:
Rob Harrington
2016-03-18 12:22:54 +11:00
parent 82bc26fe90
commit d278b72289
15 changed files with 273 additions and 27 deletions

View File

@@ -23,10 +23,11 @@ describe "TagRulesCtrl", ->
describe "adding a new tag group", ->
beforeEach ->
scope.addNewRuleTo(scope.tagGroups[0])
scope.addNewRuleTo(scope.tagGroups[0], "DiscountOrder")
it "adds a new rule to the rules array for the tagGroup", ->
it "adds a new rule of the specified type to the rules array for the tagGroup", ->
expect(scope.tagGroups[0].rules.length).toEqual 3
expect(scope.tagGroups[0].rules[2].type).toEqual "TagRule::DiscountOrder"
it "updates tagGroup start indices", ->
expect(scope.tagGroups[0].startIndex).toEqual 0