| 1 |
Feature: Netgroup manipulation |
| 2 |
Create, and delete netgroups |
| 3 |
|
| 4 |
@test |
| 5 |
Scenario: Add a new netgroup |
| 6 |
Given I am logged in as admin |
| 7 |
And I am on "netgroups" page |
| 8 |
|
| 9 |
When I click on the "netgroups-button-add" button |
| 10 |
Then I should see "add-netgroup-modal" modal |
| 11 |
|
| 12 |
When I type in the "modal-textbox-netgroup-name" textbox text "a_net_group" |
| 13 |
Then I should see "a_net_group" in the "modal-textbox-netgroup-name" textbox |
| 14 |
|
| 15 |
When I click on the "modal-button-add" button |
| 16 |
Then I should not see "add-netgroup-modal" modal |
| 17 |
And I should see "add-netgroup-success" alert |
| 18 |
|
| 19 |
When I search for "a_net_group" in the data table |
| 20 |
Then I should see "a_net_group" entry in the data table |
| 21 |
|
| 22 |
@cleanup |
| 23 |
Scenario: Delete a netgroup |
| 24 |
Given I delete netgroup "a_net_group" |
| 25 |
|
| 26 |
@test |
| 27 |
Scenario: Add a new netgroup with description |
| 28 |
Given I am logged in as admin |
| 29 |
And I am on "netgroups" page |
| 30 |
|
| 31 |
When I click on the "netgroups-button-add" button |
| 32 |
Then I should see "add-netgroup-modal" modal |
| 33 |
|
| 34 |
When I type in the "modal-textbox-netgroup-name" textbox text "b_net_group" |
| 35 |
Then I should see "b_net_group" in the "modal-textbox-netgroup-name" textbox |
| 36 |
|
| 37 |
When I type in the "modal-textbox-netgroup-description" textbox text "my description" |
| 38 |
Then I should see "my description" in the "modal-textbox-netgroup-description" textbox |
| 39 |
|
| 40 |
When I click on the "modal-button-add" button |
| 41 |
Then I should not see "add-netgroup-modal" modal |
| 42 |
And I should see "add-netgroup-success" alert |
| 43 |
|
| 44 |
When I search for "b_net_group" in the data table |
| 45 |
Then I should see "b_net_group" entry in the data table |
| 46 |
|
| 47 |
@cleanup |
| 48 |
Scenario: Delete a netgroup |
| 49 |
Given I delete netgroup "b_net_group" |
| 50 |
|
| 51 |
@seed |
| 52 |
Scenario: Create netgroups |
| 53 |
Given netgroup "a_net_group" exists |
| 54 |
|
| 55 |
@test |
| 56 |
Scenario: Delete a netgroup via toolbar |
| 57 |
Given I am logged in as admin |
| 58 |
And I am on "netgroups" page |
| 59 |
|
| 60 |
When I select entry "a_net_group" in the data table |
| 61 |
Then I should see "a_net_group" entry selected in the data table |
| 62 |
|
| 63 |
When I click on the "netgroups-button-delete" button |
| 64 |
Then I should see "delete-netgroups-modal" modal |
| 65 |
|
| 66 |
When I click on the "modal-button-delete" button |
| 67 |
Then I should not see "delete-netgroups-modal" modal |
| 68 |
And I should see "remove-netgroups-success" alert |
| 69 |
|
| 70 |
When I search for "a_net_group" in the data table |
| 71 |
Then I should not see "a_net_group" entry in the data table |
| 72 |
|
| 73 |
@seed |
| 74 |
Scenario: Create netgroups |
| 75 |
Given netgroup "b_net_group" exists |
| 76 |
And netgroup "c_net_group" exists |
| 77 |
And netgroup "d_net_group" exists |
| 78 |
|
| 79 |
@test |
| 80 |
Scenario: Delete many netgroups via toolbar |
| 81 |
Given I am logged in as admin |
| 82 |
And I am on "netgroups" page |
| 83 |
|
| 84 |
When I select entry "b_net_group" in the data table |
| 85 |
Then I should see "b_net_group" entry selected in the data table |
| 86 |
|
| 87 |
When I select entry "c_net_group" in the data table |
| 88 |
Then I should see "c_net_group" entry selected in the data table |
| 89 |
|
| 90 |
When I select entry "d_net_group" in the data table |
| 91 |
Then I should see "d_net_group" entry selected in the data table |
| 92 |
|
| 93 |
When I click on the "netgroups-button-delete" button |
| 94 |
Then I should see "delete-netgroups-modal" modal |
| 95 |
|
| 96 |
When I click on the "modal-button-delete" button |
| 97 |
Then I should not see "delete-netgroups-modal" modal |
| 98 |
And I should see "remove-netgroups-success" alert |
| 99 |
|
| 100 |
When I search for "b_net_group" in the data table |
| 101 |
Then I should not see "b_net_group" entry in the data table |
| 102 |
|
| 103 |
When I search for "c_net_group" in the data table |
| 104 |
Then I should not see "c_net_group" entry in the data table |
| 105 |
|
| 106 |
When I search for "d_net_group" in the data table |
| 107 |
Then I should not see "d_net_group" entry in the data table |
| 108 |
|
| 109 |
@test |
| 110 |
Scenario: Cancel creation of a netgroup |
| 111 |
Given I am logged in as admin |
| 112 |
And I am on "netgroups" page |
| 113 |
|
| 114 |
When I click on the "netgroups-button-add" button |
| 115 |
Then I should see "add-netgroup-modal" modal |
| 116 |
|
| 117 |
When I type in the "modal-textbox-netgroup-name" textbox text "cancelgroup" |
| 118 |
Then I should see "cancelgroup" in the "modal-textbox-netgroup-name" textbox |
| 119 |
|
| 120 |
When I click on the "modal-button-cancel" button |
| 121 |
Then I should not see "add-netgroup-modal" modal |
| 122 |
|
| 123 |
When I search for "cancelgroup" in the data table |
| 124 |
Then I should not see "cancelgroup" entry in the data table |