| 1 |
Feature: User group members |
| 2 |
Manage user group members across Users, User groups, and Services tabs |
| 3 |
|
| 4 |
@seed |
| 5 |
Scenario: Create seed data (user and user group) |
| 6 |
Given User "aturing" "Alan" "Turing" exists and is using password "Secret123" |
| 7 |
And user group "imitation-game-group" exists |
| 8 |
|
| 9 |
@test |
| 10 |
Scenario: Add a User member into the user group |
| 11 |
Given I am logged in as admin |
| 12 |
And I am on "user-groups/imitation-game-group/member_user" page |
| 13 |
|
| 14 |
When I click on the "member-of-button-add" button |
| 15 |
Then I should see "member-of-add-modal" modal |
| 16 |
And I should see "item-aturing" dual list item on the left |
| 17 |
|
| 18 |
When I click on "item-aturing" dual list item |
| 19 |
Then I should see "item-aturing" dual list item selected |
| 20 |
When I click on the "dual-list-add-selected" button |
| 21 |
Then I should see "item-aturing" dual list item on the right |
| 22 |
|
| 23 |
When I click on the "modal-button-add" button |
| 24 |
Then I should not see "member-of-add-modal" modal |
| 25 |
And I should see "add-member-success" alert |
| 26 |
|
| 27 |
When I search for "aturing" in the members table |
| 28 |
Then I should see "aturing" entry in the data table |
| 29 |
|
| 30 |
@cleanup |
| 31 |
Scenario: Cleanup seed data |
| 32 |
Given I delete user "aturing" |
| 33 |
And I delete user group "imitation-game-group" |
| 34 |
|
| 35 |
@seed |
| 36 |
Scenario: Create seed data (user and user group) |
| 37 |
Given user group "imitation-game-group" exists |
| 38 |
|
| 39 |
@test |
| 40 |
Scenario: Switch between direct and indirect memberships (Users) |
| 41 |
Given I am logged in as admin |
| 42 |
And I am on "user-groups/imitation-game-group/member_user" page |
| 43 |
|
| 44 |
When I click on the "member-of-toggle-group-item-indirect" button |
| 45 |
Then I should see the "member-of-toggle-group-item-indirect" toggle button is pressed |
| 46 |
And I should see the "member-of-button-add" button is disabled |
| 47 |
|
| 48 |
When I click on the "member-of-toggle-group-item-direct" button |
| 49 |
Then I should see the "member-of-toggle-group-item-indirect" toggle button is not pressed |
| 50 |
And I should see the "member-of-toggle-group-item-direct" toggle button is pressed |
| 51 |
And I should see the "member-of-button-add" button is enabled |
| 52 |
|
| 53 |
@cleanup |
| 54 |
Scenario: Cleanup seed data |
| 55 |
Given I delete user group "imitation-game-group" |
| 56 |
|
| 57 |
@seed |
| 58 |
Scenario: Create seed data (user and user group) |
| 59 |
Given User "aturing" "Alan" "Turing" exists and is using password "Secret123" |
| 60 |
And user group "imitation-game-group" exists |
| 61 |
And user "aturing" is member of group "imitation-game-group" |
| 62 |
|
| 63 |
@test |
| 64 |
Scenario: Remove User from the user group |
| 65 |
Given I am logged in as admin |
| 66 |
And I am on "user-groups/imitation-game-group/member_user" page |
| 67 |
|
| 68 |
When I select entry "aturing" in the members table |
| 69 |
Then I should see "aturing" entry selected in the data table |
| 70 |
|
| 71 |
When I click on the "member-of-button-delete" button |
| 72 |
Then I should see "member-of-delete-modal" modal |
| 73 |
|
| 74 |
When I click on the "modal-button-delete" button |
| 75 |
Then I should not see "member-of-delete-modal" modal |
| 76 |
And I should see "remove-users-success" alert |
| 77 |
|
| 78 |
When I search for "aturing" in the members table |
| 79 |
Then I should not see "aturing" entry in the data table |
| 80 |
|
| 81 |
@cleanup |
| 82 |
Scenario: Cleanup seed data |
| 83 |
Given I delete user "aturing" |
| 84 |
And I delete user group "imitation-game-group" |
| 85 |
|
| 86 |
@seed |
| 87 |
Scenario: Create seed data (user group) |
| 88 |
Given user group "imitation-game-group" exists |
| 89 |
|
| 90 |
@test |
| 91 |
Scenario: Add a User group member into the user group |
| 92 |
Given I am logged in as admin |
| 93 |
And I am on "user-groups/imitation-game-group/member_group" page |
| 94 |
|
| 95 |
When I click on the "member-of-button-add" button |
| 96 |
Then I should see "member-of-add-modal" modal |
| 97 |
And I should see "item-editors" dual list item on the left |
| 98 |
|
| 99 |
When I click on "item-editors" dual list item |
| 100 |
Then I should see "item-editors" dual list item selected |
| 101 |
When I click on the "dual-list-add-selected" button |
| 102 |
Then I should see "item-editors" dual list item on the right |
| 103 |
|
| 104 |
When I click on the "modal-button-add" button |
| 105 |
Then I should not see "member-of-add-modal" modal |
| 106 |
And I should see "add-member-success" alert |
| 107 |
|
| 108 |
When I search for "editors" in the members table |
| 109 |
Then I should see "editors" entry in the data table |
| 110 |
|
| 111 |
@cleanup |
| 112 |
Scenario: Cleanup seed data |
| 113 |
Given I delete user group "imitation-game-group" |
| 114 |
|
| 115 |
@seed |
| 116 |
Scenario: Create seed data (user group) |
| 117 |
Given user group "imitation-game-group" exists |
| 118 |
|
| 119 |
@test |
| 120 |
Scenario: Switch between direct and indirect memberships (User groups) |
| 121 |
Given I am logged in as admin |
| 122 |
And I am on "user-groups/imitation-game-group/member_group" page |
| 123 |
|
| 124 |
When I click on the "member-of-toggle-group-item-indirect" button |
| 125 |
Then I should see the "member-of-toggle-group-item-indirect" toggle button is pressed |
| 126 |
And I should see the "member-of-button-add" button is disabled |
| 127 |
|
| 128 |
When I click on the "member-of-toggle-group-item-direct" button |
| 129 |
Then I should see the "member-of-toggle-group-item-indirect" toggle button is not pressed |
| 130 |
And I should see the "member-of-toggle-group-item-direct" toggle button is pressed |
| 131 |
And I should see the "member-of-button-add" button is enabled |
| 132 |
|
| 133 |
@cleanup |
| 134 |
Scenario: Cleanup seed data |
| 135 |
Given I delete user group "imitation-game-group" |
| 136 |
|
| 137 |
@seed |
| 138 |
Scenario: Create seed data (user group) |
| 139 |
Given user group "imitation-game-group" exists |
| 140 |
And user group "editors" is member of group "imitation-game-group" |
| 141 |
|
| 142 |
@test |
| 143 |
Scenario: Remove User group from the user group |
| 144 |
Given I am logged in as admin |
| 145 |
And I am on "user-groups/imitation-game-group/member_group" page |
| 146 |
|
| 147 |
When I select entry "editors" in the members table |
| 148 |
Then I should see "editors" entry selected in the data table |
| 149 |
|
| 150 |
When I click on the "member-of-button-delete" button |
| 151 |
Then I should see "member-of-delete-modal" modal |
| 152 |
|
| 153 |
When I click on the "modal-button-delete" button |
| 154 |
Then I should not see "member-of-delete-modal" modal |
| 155 |
And I should see "remove-usersgroups-success" alert |
| 156 |
|
| 157 |
When I search for "editors" in the members table |
| 158 |
Then I should not see "editors" entry in the data table |
| 159 |
|
| 160 |
@cleanup |
| 161 |
Scenario: Cleanup seed data |
| 162 |
Given I delete user group "imitation-game-group" |
| 163 |
|
| 164 |
@seed |
| 165 |
Scenario: Create seed data (user group) |
| 166 |
Given user group "imitation-game-group" exists |
| 167 |
|
| 168 |
@test |
| 169 |
Scenario: Add a Service member into the user group |
| 170 |
Given I am logged in as admin |
| 171 |
And I am on "user-groups/imitation-game-group/member_service" page |
| 172 |
|
| 173 |
When I click on the "member-of-button-add" button |
| 174 |
Then I should see "member-of-add-modal" modal |
| 175 |
And I should see "item-DNS/[email protected]" dual list item on the left |
| 176 |
|
| 177 |
When I click on "item-DNS/[email protected]" dual list item |
| 178 |
Then I should see "item-DNS/[email protected]" dual list item selected |
| 179 |
When I click on the "dual-list-add-selected" button |
| 180 |
Then I should see "item-DNS/[email protected]" dual list item on the right |
| 181 |
|
| 182 |
When I click on the "modal-button-add" button |
| 183 |
Then I should not see "member-of-add-modal" modal |
| 184 |
And I should see "add-member-success" alert |
| 185 |
|
| 186 |
When I search for "DNS" in the members table |
| 187 |
Then I should see "DNS/[email protected]" entry in the data table |
| 188 |
|
| 189 |
@cleanup |
| 190 |
Scenario: Cleanup seed data |
| 191 |
Given I delete user group "imitation-game-group" |
| 192 |
|
| 193 |
@seed |
| 194 |
Scenario: Create seed data (user group) |
| 195 |
Given user group "imitation-game-group" exists |
| 196 |
|
| 197 |
@test |
| 198 |
Scenario: Switch between direct and indirect memberships (Services) |
| 199 |
Given I am logged in as admin |
| 200 |
And I am on "user-groups/imitation-game-group/member_service" page |
| 201 |
|
| 202 |
When I click on the "member-of-toggle-group-item-indirect" button |
| 203 |
Then I should see the "member-of-toggle-group-item-indirect" toggle button is pressed |
| 204 |
And I should see the "member-of-button-add" button is disabled |
| 205 |
|
| 206 |
When I click on the "member-of-toggle-group-item-direct" button |
| 207 |
Then I should see the "member-of-toggle-group-item-indirect" toggle button is not pressed |
| 208 |
And I should see the "member-of-toggle-group-item-direct" toggle button is pressed |
| 209 |
And I should see the "member-of-button-add" button is enabled |
| 210 |
|
| 211 |
@cleanup |
| 212 |
Scenario: Cleanup seed data |
| 213 |
Given I delete user group "imitation-game-group" |
| 214 |
|
| 215 |
@seed |
| 216 |
Scenario: Create seed data (user group) |
| 217 |
Given user group "imitation-game-group" exists |
| 218 |
And service "DNS/[email protected]" is member of group "imitation-game-group" |
| 219 |
|
| 220 |
@test |
| 221 |
Scenario: Remove Service from the user group |
| 222 |
Given I am logged in as admin |
| 223 |
And I am on "user-groups/imitation-game-group/member_service" page |
| 224 |
|
| 225 |
When I select entry "DNS/[email protected]" in the members table |
| 226 |
Then I should see "DNS/[email protected]" entry selected in the data table |
| 227 |
|
| 228 |
When I click on the "member-of-button-delete" button |
| 229 |
Then I should see "member-of-delete-modal" modal |
| 230 |
|
| 231 |
When I click on the "modal-button-delete" button |
| 232 |
Then I should not see "member-of-delete-modal" modal |
| 233 |
And I should see "remove-services-success" alert |
| 234 |
|
| 235 |
When I search for "DNS" in the members table |
| 236 |
Then I should not see "DNS/[email protected]" entry in the data table |
| 237 |
|
| 238 |
@cleanup |
| 239 |
Scenario: Cleanup seed data |
| 240 |
Given I delete user group "imitation-game-group" |