-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
adding_promotion.feature
67 lines (60 loc) · 2.69 KB
/
adding_promotion.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@managing_promotions
Feature: Adding a new promotion
In order to sell more by creating discount incentives for customers
As an Administrator
I want to add a new promotion
Background:
Given the store operates on a single channel in "France"
And I am logged in as an administrator
@ui
Scenario: Adding a new promotion
Given I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion"
And I add it
Then I should be notified that it has been successfully created
And the "Full metal promotion" promotion should appear in the registry
@ui
Scenario: Adding a new promotion with usage limit
Given I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion"
And I set its usage limit to 50
And I add it
Then I should be notified that it has been successfully created
And the "Full metal promotion" promotion should be available to be used only 50 times
@ui
Scenario: Adding a new exclusive promotion
Given I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion"
And I make it exclusive
And I add it
Then I should be notified that it has been successfully created
And the "Full metal promotion" promotion should be exclusive
@ui
Scenario: Adding a new coupon based promotion
Given I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion"
And I make it coupon based
And I add it
Then I should be notified that it has been successfully created
And the "Full metal promotion" promotion should be coupon based
@ui
Scenario: Adding a new channels promotion
Given I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion"
And I make it applicable for the "France" channel
And I add it
Then I should be notified that it has been successfully created
And the "Full metal promotion" promotion should be applicable for the "France" channel
@ui
Scenario: Adding a promotion with start and end date
Given I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion"
And I make it available from "21.04.2017" to "21.05.2017"
And I add it
Then I should be notified that it has been successfully created