user_search.feature 1.32 KB
Newer Older
Robert Lyon's avatar
Robert Lyon committed
1
@javascript @core @core_administration
2
3
4
5
6
Feature: Configuration on user search page
In order to change the configuration of the user search page
As an admin
So I can benefit from the use of different configurations

7
Background:
8
9
 Given the following "users" exist:
     | username | password | email | firstname | lastname | institution | authname | role |
10
     | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | admin |
11
12
13

Scenario: Testing functions for user search page (Bug 1431569)
 Given I log in as "admin" with password "Kupuhipa1"
14
 And I choose "User search" in "Users" from Admin menu
15
16
 And I follow "Advanced options"
 And I follow "P" in the "div#firstnamelist" "css_element"
17
 And I follow "userA"
18
 And I should see "Account settings | Pete Mc (userA)"
19
 # Flicking the switches to new settings
20
21
22
 And I set the following fields to these values:
 | Force password change on next login  | 1 |
 | Disable email | 1 |
23
 And I press "Save changes"
24

25
 # Check that I can do user search when 'Email address' option is on
Robert Lyon's avatar
Robert Lyon committed
26
27
28
 Given the following plugin settings are set:
 | plugintype | plugin  | field | value |
 | artefact | internal | profilepublic | email |
29
 And I set the following fields to these values:
Robert Lyon's avatar
Robert Lyon committed
30
 | Search users | test01@example.com |
31
32
 And I press the key "Enter" in the "Search users" field
 Then I should see "userA"