-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathEntitySteps.feature
More file actions
206 lines (168 loc) · 7.16 KB
/
EntitySteps.feature
File metadata and controls
206 lines (168 loc) · 7.16 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
Feature: Entity Steps
In order to automate entity interaction
As a developer
I want to use pre-existing entity bindings
Background:
Given I am logged in to the 'Mock App' app as 'an admin'
When I open the sub area 'Mock Records' under the 'Primary Group' area
When I select the 'New' command
And I select 'Information' form
Scenario: Select a tab
When I select the 'Secondary' tab
Scenario: Assert tab is visible
Then I can see the 'Primary' tab
Scenario: Assert tab is hidden
Then I cannot see the 'Hidden' tab
Scenario Outline: Enter values on a form
When I enter '<value>' into the '<column>' <type> field on the form
Then I can see a value of '<value>' in the '<column>' <type> field
Scenarios:
| column | type | value |
| sb_text | text | Some text |
| sb_number | numeric | 10 |
| sb_yesno | boolean | true |
| sb_choice | optionset | Option A |
| sb_choices | multioptionset | Option A, Option B |
# | sb_dateandtime | datetime | 1/1/2021 13:00 | Currently failing due to https://github.com/microsoft/EasyRepro/issues/1139
| sb_dateonly | datetime | 1/1/2021 |
| sb_currency | currency | £10.00 |
Scenario: Enter lookup on a form
Given I have created 'a secondary mock record'
When I enter 'A secondary mock record' into the 'sb_lookup' lookup field on the form
Then I can see a value of 'A secondary mock record' in the 'sb_lookup' lookup field
Scenario Outline: Enter values on a form header
When I enter '<value>' into the '<column>' <type> header field on the form
Scenarios:
| column | type | value |
| sb_headertext | text | Some text |
| sb_headernumber | numeric | 10 |
| sb_headeryesno | boolean | false |
| sb_headerchoice | optionset | Option A |
| sb_headerdateandtime | datetime | 1/1/2021 13:00 |
| sb_headerdateonly | datetime | 1/1/2021 |
| sb_headercurrency | currency | £10.00 |
Scenario: Enter lookup on a form header
Given I have created 'a secondary mock record'
When I enter 'A secondary mock record' into the 'sb_headerlookup' lookup header field on the form
Scenario: Enter multiple values on a form
When I enter the following into the form
| Value | Field | Type | Location |
| Some text | sb_text | text | field |
| 10 | sb_headernumber | numeric | header field |
Scenario Outline: Clear field values
When I enter '<value>' into the '<column>' <type> field on the form
And I clear the '<column>' <type> field
Then I can see a value of '<clearedValue>' in the '<column>' <type> field
Scenarios:
| column | type | value | clearedValue |
| sb_text | text | Some text | |
| sb_number | numeric | 10 | |
| sb_choice | optionset | Option A | --Select-- |
| sb_choices | multioptionset | Option A, Option B | |
| sb_dateandtime | datetime | 1/1/2021 13:00 | |
| sb_dateonly | datetime | 1/1/2021 | |
| sb_currency | currency | £10.00 | |
Scenario: Clear lookup value
Given I have created 'a secondary mock record'
When I enter 'A secondary mock record' into the 'sb_lookup' lookup field on the form
And I clear the 'sb_lookup' lookup field
Then I can see a value of '' in the 'sb_lookup' lookup field
Scenario: Delete a record
Given I have created 'a secondary mock record'
And I have opened 'the secondary mock record'
When I delete the record
Scenario: Open and close the record set navigator
Given I have created 'data decorated with faker moustache syntax'
And I have created 'a record with an alias'
When I open the sub area 'Mock Records' under the 'Primary Group' area
And I open the record at position '0' in the grid
And I open the record set navigator
And I close the record set navigator
Scenario: Open a form
When I select 'Additional information' form
Then I am presented with a 'Additional information' form for the 'sb_mockrecord' entity
Scenario: Select a lookup
When I select 'sb_lookup' lookup
Scenario: Save a record
When I enter 'Some text' into the 'sb_name' text field on the form
And I save the record
@ignore
#Currently failing due to https://github.com/microsoft/EasyRepro/issues/1120
Scenario: Assign to a user or team
Given I have created 'a team'
And I have created 'a secondary mock record'
And I have opened 'the secondary mock record'
When I assign the record to a team named 'A team'
Scenario: Switch process
Given I have created 'a record with a business process flow'
And I have opened 'the record'
When I switch process to the 'Secondary Business Process Flow' process
Scenario: Assert a field is optional
Then the 'sb_text' field is optional
Scenario: Assert a field is required
Then the 'sb_name' field is mandatory
Scenario: Assert a set of fields are optional
Then the following fields are optional
| fields |
| sb_text |
| sb_number |
| sb_yesno |
Scenario: Assert a set of fields are mandatory
Then the following fields are mandatory
| fields |
| sb_name |
Scenario Outline: Assert fom notification message
Then I can see <type> form notification stating '<text>'
Scenarios:
| type | text |
| an info | A mock info form notification |
| a warning | A mock warning form notification |
| an error | A mock error form notification |
Scenario: Assert header title
Then I can see a value of 'New Mock Record' as the header title
Scenario Outline: Assert field editable
Then I can edit the '<column>' field
Scenarios:
| column |
| sb_text |
| sb_number |
| sb_yesno |
| sb_choice |
| sb_choices |
| sb_dateandtime |
| sb_dateonly |
| sb_currency |
Scenario: Assert fields editable
Then I can edit the following fields
| Field |
| sb_text |
| sb_number |
| sb_yesno |
| sb_choice |
| sb_choices |
| sb_dateandtime |
| sb_dateonly |
| sb_currency |
Scenario: Assert option set options
Then I can see the following options in the 'sb_choice' option set field
| Option |
| Option A |
| Option B |
| Option C |
Scenario: Assert field visible
Then I can see the 'sb_name' field
Scenario: Assert field not visible
Then I can not see the 'ownerid' field
Scenario: Assert record status
Then the status of the record is active
Scenario: Assert business process error message
When I enter 'Some text' into the 'sb_name' text field on the form
And I enter 'true' into the 'sb_triggerbusinessprocesserror' boolean field on the form
And I save the record
Then I can see a business process error stating 'Mock business process error'
Scenario: Assert field not editable
Then I can not edit the 'createdonbehalfby' field
Scenario: Assert fields not editable
Then I can not edit the following fields
| Field |
| createdonbehalfby |