mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Updating Tag Rules UI to allow management of new FilterShippingMethods rule type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user