[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_user 2 Feature: Deleting users 3 In order to manage a Moodle site 4 As an admin 5 I need to be able to delete users 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | user1 | User | One | one@example.com | 11 | user2 | User | Two | two@example.com | 12 | user3 | User | Three | three@example.com | 13 | user4 | User | Four | four@example.com | 14 15 @javascript 16 Scenario: Deleting one user at a time 17 When I log in as "admin" 18 And I navigate to "Bulk user actions" node in "Site administration > Users > Accounts" 19 And the "Available" select box should contain "User Four" 20 And I set the field "Available" to "User Four" 21 And I press "Add to selection" 22 And I set the field "id_action" to "Delete" 23 And I press "Go" 24 And I should see "Are you absolutely sure you want to completely delete the user User Four, including their enrolments, activity and other user data?" 25 And I press "Yes" 26 And I should see "Changes saved" 27 And I press "Continue" 28 Then the "Available" select box should not contain "User Four" 29 And the "Available" select box should contain "User One" 30 31 @javascript 32 Scenario: Deleting more than one user at a time 33 When I log in as "admin" 34 And I navigate to "Bulk user actions" node in "Site administration > Users > Accounts" 35 And I set the field "Available" to "User Four" 36 And I press "Add to selection" 37 And I set the field "Available" to "User Three" 38 And I press "Add to selection" 39 And I set the field "id_action" to "Delete" 40 And I press "Go" 41 And I should see "Are you absolutely sure you want to completely delete the user User Four, User Three, including their enrolments, activity and other user data?" 42 And I press "Yes" 43 And I should see "Changes saved" 44 And I press "Continue" 45 Then the "Available" select box should not contain "User Four" 46 And the "Available" select box should not contain "User Three" 47 And the "Available" select box should contain "User One" 48 49 @javascript @core_message 50 Scenario: Deleting users who have unread messages sent or received 51 When I log in as "user1" 52 And I send "Message 1 from user1 to user2" message to "User Two" user 53 And I log out 54 And I log in as "user3" 55 And I send "Message 2 from user3 to user4" message to "User Four" user 56 And I log out 57 And I log in as "admin" 58 And I navigate to "Bulk user actions" node in "Site administration > Users > Accounts" 59 And I set the field "Available" to "User One" 60 And I press "Add to selection" 61 And I set the field "Available" to "User Four" 62 And I press "Add to selection" 63 And I set the field "id_action" to "Delete" 64 And I press "Go" 65 And I press "Yes" 66 Then I should see "Changes saved" 67 And I navigate to "Bulk user actions" node in "Site administration > Users > Accounts" 68 And I set the field "Available" to "User Two" 69 And I press "Add to selection" 70 And I set the field "Available" to "User Three" 71 And I press "Add to selection" 72 And I set the field "id_action" to "Delete" 73 And I press "Go" 74 And I press "Yes" 75 And I should see "Changes saved" 76 And I press "Continue" 77 And the "Available" select box should not contain "User Four" 78 And the "Available" select box should not contain "User Three" 79 And the "Available" select box should not contain "User One" 80 And the "Available" select box should not contain "User Two"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |