| 1 |
Feature: ID View manipulation |
| 2 |
Create, and delete ID views |
| 3 |
|
| 4 |
@test |
| 5 |
Scenario: Add a new view |
| 6 |
Given I am logged in as admin |
| 7 |
And I am on "id-views" page |
| 8 |
|
| 9 |
When I click on the "id-views-button-add" button |
| 10 |
Then I should see "add-id-view-modal" modal |
| 11 |
|
| 12 |
When I type in the "modal-textbox-id-view-name" textbox text "a_new_view" |
| 13 |
Then I should see "a_new_view" in the "modal-textbox-id-view-name" textbox |
| 14 |
|
| 15 |
When I click on the "modal-button-add" button |
| 16 |
Then I should not see "add-id-view-modal" modal |
| 17 |
And I should see "add-id-view-success" alert |
| 18 |
|
| 19 |
When I search for "a_new_view" in the data table |
| 20 |
Then I should see "a_new_view" entry in the data table |
| 21 |
|
| 22 |
@cleanup |
| 23 |
Scenario: Delete a view |
| 24 |
Given I delete view "a_new_view" |
| 25 |
|
| 26 |
@test |
| 27 |
Scenario: Add a new view with description |
| 28 |
Given I am logged in as admin |
| 29 |
And I am on "id-views" page |
| 30 |
|
| 31 |
When I click on the "id-views-button-add" button |
| 32 |
Then I should see "add-id-view-modal" modal |
| 33 |
|
| 34 |
When I type in the "modal-textbox-id-view-name" textbox text "a_new_view" |
| 35 |
Then I should see "a_new_view" in the "modal-textbox-id-view-name" textbox |
| 36 |
|
| 37 |
When I type in the "modal-textbox-id-view-description" textbox text "my description" |
| 38 |
Then I should see "my description" in the "modal-textbox-id-view-description" textbox |
| 39 |
|
| 40 |
When I click on the "modal-button-add" button |
| 41 |
Then I should not see "add-id-view-modal" modal |
| 42 |
And I should see "add-id-view-success" alert |
| 43 |
|
| 44 |
When I search for "a_new_view" in the data table |
| 45 |
Then I should see "a_new_view" entry in the data table |
| 46 |
And I should see "a_new_view" entry in the data table with attribute "Description" set to "my description" |
| 47 |
|
| 48 |
@cleanup |
| 49 |
Scenario: Delete a view |
| 50 |
Given I delete view "a_new_view" |
| 51 |
|
| 52 |
@seed |
| 53 |
Scenario: Create views |
| 54 |
Given view "a_new_view" exists |
| 55 |
|
| 56 |
@test |
| 57 |
Scenario: Unapply views from hosts |
| 58 |
Given I am logged in as admin |
| 59 |
And I am on "id-views" page |
| 60 |
|
| 61 |
When I click on the "id-views-kebab" kebab menu |
| 62 |
Then I should see "id-views-kebab" kebab menu expanded |
| 63 |
|
| 64 |
When I click on the "id-views-kebab-unapply-hosts" button |
| 65 |
Then I should see "dual-list-modal" modal |
| 66 |
|
| 67 |
When I click on search link in dual list |
| 68 |
Then I should see "item-webui.ipa.test" dual list item on the left |
| 69 |
|
| 70 |
When I click on "item-webui.ipa.test" dual list item |
| 71 |
Then I should see "item-webui.ipa.test" dual list item selected |
| 72 |
|
| 73 |
When I click on the "dual-list-add-selected" button |
| 74 |
Then I should see "item-webui.ipa.test" dual list item on the right |
| 75 |
And I should see "item-webui.ipa.test" dual list item not selected |
| 76 |
|
| 77 |
When I click on the "modal-button-add" button |
| 78 |
Then I should not see "dual-list-modal" modal |
| 79 |
And I should see "unapply-id-views-hosts-success" alert |
| 80 |
|
| 81 |
@test |
| 82 |
Scenario: Unapply views from host groups |
| 83 |
Given I am logged in as admin |
| 84 |
And I am on "id-views" page |
| 85 |
|
| 86 |
When I click on the "id-views-kebab" kebab menu |
| 87 |
Then I should see "id-views-kebab" kebab menu expanded |
| 88 |
|
| 89 |
When I click on the "id-views-kebab-unapply-hostgroups" button |
| 90 |
Then I should see "dual-list-modal" modal |
| 91 |
|
| 92 |
When I click on search link in dual list |
| 93 |
Then I should see "item-ipaservers" dual list item on the left |
| 94 |
|
| 95 |
When I click on "item-ipaservers" dual list item |
| 96 |
Then I should see "item-ipaservers" dual list item selected |
| 97 |
|
| 98 |
When I click on the "dual-list-add-selected" button |
| 99 |
Then I should see "item-ipaservers" dual list item on the right |
| 100 |
And I should see "item-ipaservers" dual list item not selected |
| 101 |
|
| 102 |
When I click on the "modal-button-add" button |
| 103 |
Then I should not see "dual-list-modal" modal |
| 104 |
And I should see "unapply-id-views-hosts-success" alert |
| 105 |
|
| 106 |
@cleanup |
| 107 |
Scenario: Delete a view |
| 108 |
Given I delete view "a_new_view" |
| 109 |
|
| 110 |
@seed |
| 111 |
Scenario: Create view "a_new_view" |
| 112 |
Given view "a_new_view" exists |
| 113 |
|
| 114 |
@test |
| 115 |
Scenario: Delete a view |
| 116 |
Given I am logged in as admin |
| 117 |
And I am on "id-views" page |
| 118 |
|
| 119 |
When I search for "a_new_view" in the data table |
| 120 |
Then I should see "a_new_view" entry in the data table |
| 121 |
|
| 122 |
When I select entry "a_new_view" in the data table |
| 123 |
Then I should see "a_new_view" entry selected in the data table |
| 124 |
|
| 125 |
When I click on the "id-views-button-delete" button |
| 126 |
Then I should see "delete-id-views-modal" modal |
| 127 |
|
| 128 |
When I click on the "modal-button-delete" button |
| 129 |
Then I should not see "delete-id-views-modal" modal |
| 130 |
And I should see "remove-id-views-success" alert |
| 131 |
|
| 132 |
When I search for "a_new_view" in the data table |
| 133 |
Then I should not see "a_new_view" entry in the data table |
| 134 |
|
| 135 |
@seed |
| 136 |
Scenario: Create views |
| 137 |
Given view "a_new_view" exists |
| 138 |
Given view "b_new_view" exists |
| 139 |
|
| 140 |
@test |
| 141 |
Scenario: Delete many views |
| 142 |
Given I am logged in as admin |
| 143 |
And I am on "id-views" page |
| 144 |
|
| 145 |
When I search for "a_new_view" in the data table |
| 146 |
Then I should see "a_new_view" entry in the data table |
| 147 |
|
| 148 |
When I select entry "a_new_view" in the data table |
| 149 |
Then I should see "a_new_view" entry selected in the data table |
| 150 |
|
| 151 |
When I search for "b_new_view" in the data table |
| 152 |
Then I should see "b_new_view" entry in the data table |
| 153 |
|
| 154 |
When I select entry "b_new_view" in the data table |
| 155 |
Then I should see "b_new_view" entry selected in the data table |
| 156 |
|
| 157 |
When I click on the "id-views-button-delete" button |
| 158 |
Then I should see "delete-id-views-modal" modal |
| 159 |
|
| 160 |
When I click on the "modal-button-delete" button |
| 161 |
Then I should not see "delete-id-views-modal" modal |
| 162 |
And I should see "remove-id-views-success" alert |
| 163 |
|
| 164 |
When I search for "a_new_view" in the data table |
| 165 |
Then I should not see "a_new_view" entry in the data table |
| 166 |
|
| 167 |
When I search for "b_new_view" in the data table |
| 168 |
Then I should not see "b_new_view" entry in the data table |
| 169 |
|
| 170 |
@test |
| 171 |
Scenario: Cancel creation of a view |
| 172 |
Given I am logged in as admin |
| 173 |
And I am on "id-views" page |
| 174 |
|
| 175 |
When I click on the "id-views-button-add" button |
| 176 |
Then I should see "add-id-view-modal" modal |
| 177 |
|
| 178 |
When I type in the "modal-textbox-id-view-name" textbox text "a_new_view" |
| 179 |
Then I should see "a_new_view" in the "modal-textbox-id-view-name" textbox |
| 180 |
|
| 181 |
When I click on the "modal-button-cancel" button |
| 182 |
Then I should not see "add-id-view-modal" modal |
| 183 |
|
| 184 |
When I search for "a_new_view" in the data table |
| 185 |
Then I should not see "a_new_view" entry in the data table |