Debian Codegraph @

install/freeipa-webui/cypress/e2e/netgroup/netgroup_member_of.feature

raw
1 Feature: Netgroup Member Of manipulation
2 Manage netgroup membership in the "Member of" section
3
4 @seed
5 Scenario: Create netgroups
6 Given netgroup "my_netgroup" exists
7 And netgroup "my_netgroup_2" exists
8
9 @test
10 Scenario: Add a netgroup member into the new netgroup
11 Given I am logged in as admin
12 And I am on "netgroups/my_netgroup" page
13
14 When I click on the "netgroups-tab-memberof" tab
15 Then I should see "netgroups-tab-memberof" tab
16
17 When I click on the "member-of-button-add" button
18 Then I should see "member-of-add-modal" modal
19 And I should see "item-my_netgroup_2" dual list item on the left
20
21 When I click on "item-my_netgroup_2" dual list item
22 Then I should see "item-my_netgroup_2" dual list item selected
23
24 When I click on the "dual-list-add-selected" button
25 Then I should see "item-my_netgroup_2" dual list item on the right
26
27 When I click on the "modal-button-add" button
28 Then I should not see "member-of-add-modal" modal
29 And I should see "add-member-success" alert
30 And I should see "my_netgroup_2" entry in the data table
31
32 @test
33 Scenario: Search for a netgroup member
34 Given I am logged in as admin
35 And I am on "netgroups/my_netgroup" page
36
37 When I click on the "netgroups-tab-memberof" tab
38 Then I should see "netgroups-tab-memberof" tab
39
40 When I search for "my_netgroup_2" in the members table
41 Then I should see "my_netgroup_2" entry in the data table
42 And I should not see "my_netgroup" entry in the data table
43
44 When I search for "notthere" in the members table
45 Then I should not see "notthere" entry in the data table
46 And I should not see "my_netgroup_2" entry in the data table
47
48 @test
49 Scenario: Delete a netgroup member from the netgroup
50 Given I am logged in as admin
51 And I am on "netgroups/my_netgroup" page
52
53 When I click on the "netgroups-tab-memberof" tab
54 Then I should see "netgroups-tab-memberof" tab
55
56 When I select entry "my_netgroup_2" in the members table
57 Then I should see "my_netgroup_2" entry selected in the data table
58 When I click on the "member-of-button-delete" button
59 Then I should see "member-of-delete-modal" modal
60 And I should see "my_netgroup_2" entry in the data table
61
62 When I click on the "modal-button-delete" button
63 Then I should not see "member-of-delete-modal" modal
64 And I should see "remove-netgroups-success" alert
65 And I should not see "my_netgroup_2" entry in the data table
66
67 @cleanup
68 Scenario: Delete netgroups
69 Given I delete netgroup "my_netgroup"
70 And I delete netgroup "my_netgroup_2"