-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path2.4.2.3 Toggle on - toggle off features.feature
146 lines (133 loc) · 4.79 KB
/
2.4.2.3 Toggle on - toggle off features.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
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
Feature: 2.4.2.3 Toggle on - toggle off features
Background:
Given user signed in as an Admin
And user created experiment using "test.gb" file from "for scenarios/2.4.2/2.4.2.3" subdirectory
@Smoke
Scenario: 2.4.2.3_01 All features should be visible by default in "Sequence" view of maps
Given user clicked on "Sequence" button
When user opens Sidebar
Then all items in the "Features" table should be turned on
And following features should be visible:
| feature | name |
| source | source |
| Feature1 | Feature1 |
| Feature2 | Feature2 |
| Feature3 | Feature3 |
| Feature4 | Feature4 |
@Regression
Scenario Outline: 2.4.2.3_02 User can "toggle off" all annotation features by filter in right sidebar
Given user clicked on <name of map> map button
And following features are displayed on scene:
| feature | name |
| source | source |
| Feature1 | Feature1 |
| Feature2 | Feature2 |
| Feature3 | Feature3 |
| Feature4 | Feature4 |
And user opened Sidebar
When user selects "All features" in "Filter by type:" dropdown
Then number of features displayed on <name of map> map should be 0
And the "Features" table should be not visible
And the "Feature type placeholder" label text should be "Please select feature type to display in the panel"
Examples:
| name of map |
| Linear |
| Sequence |
| Circular |
#for the future implementation
@Smoke
Scenario Outline: 2.4.2.3_03 User can "toggle off" all annotation feature of a given type
Given user clicked on <name of map> map button
And user opened Sidebar
When user selects "Promoter" in "Filter by type:" dropdown
Then following features should be displayed on scene:
| feature | name |
| source | source |
| Feature1 | Feature1 |
| Feature4 | Feature4 |
And number of features displayed on <name of map> map should be 3
And "Features" table should have the following rows in exact order:
| name | location | length |
| source | 1 - 75 | 75 |
| Feature1 | 2 - 18 | 17 |
| Feature4 | 20 - 36 | 17 |
Examples:
| name of map |
| Linear |
| Sequence |
| Circular |
@Regression
Scenario Outline: 2.4.2.3_04 User can "toggle off" particular annotation feature
Given user clicked on <name of map> map button
And inside "Scene" panel: user clicked on "Feature1"
And user opened Sidebar
And user clicked on "Three dots" button in the second row of "Features" table
When inside "Feature row menu": user clicks on "Toggle visibility" button
Then following features should not be displayed on scene:
| feature | fame |
| Feature1 | FeatureName |
And inside "Scene" panel: the following controls should be not visible:
| control name | control type |
| Filter | button |
| Point1 | checkbox |
| Point1 | checkbox |
Examples:
| name of map |
| Linear |
| Sequence |
| Circular |
@Sanity
Scenario Outline: 2.4.2.3_05 Users with different rights can use Feature13
Given user signed out from the system
And user signed in as a <user>
And user clicked on "Three dots" button in fourth row of "Features" table
When user clicks on "Feature13" option inside "Features" dropdown
Then following elements should be enabled:
| control name | control type |
| Create | button |
| Filter | dropdown |
| File name | input |
Examples:
| user |
| Admin |
| Regular user |
| Manager |
@Regression
Scenario Outline: 2.4.2.3_06 User can "toggle off" all features from the scene via Settings button
Given user clicked on <name of map> map button
And user opened Sidebar
And user clicked on "Pin sidebar" button
When user selects "Features" in "Settings" dropdown
Then number of features displayed on <name of map> map should be 0
And "Features" table should have the following rows:
| name | location | length |
| source | 1 - 75 | 75 |
| Feature1 | 2 - 18 | 17 |
| Feature4 | 20 - 36 | 17 |
| Feature3 | 38 - 65 | 28 |
| Feature2 | 67 - 75 | 9 |
Examples:
| name of map |
| Linear |
| Sequence |
| Circular |
@Regression
Scenario: 2.4.2.3_07 Changes in Features should be saved after refreshing the page
Given experiment had "{Experiment_ID}" Experiment ID
And user clicked on "Circular" button
And user opened Sidebar
And user selected "Hide" option for "Feature3" row in "Features" table
When user refreshes the page
Then following features should be displayed on scene:
| feature | name |
| source | source |
| Feature1 | Feature1 |
| Feature2 | Feature2 |
| Feature4 | Feature4 |
And items in the "Features" table should be turned according the table:
| name | status |
| source | hide |
| Feature1 | hide |
| Feature4 | hide |
| Feature3 | show |
| Feature2 | hide |