access_list_string.feature 1.64 KB
Newer Older
1
@javascript @core @core_administration
2

3
Feature: User reports have been moved to Reports section
4
5
6
    In order to make sure admin can still access reports
    As an admin
    I need to check they correct report is shown
7
8

Background:
9
    Given the following "institutions" exist:
10
11
     | name | displayname | registerallowed | registerconfirm |
     | instone | Institution One | ON | OFF |
12
13
14
     | insttwo | Institution Two | ON | OFF |

    Given the following "users" exist:
15
     | username | password | email | firstname | lastname | institution | authname | role |
Gregor Anzelj's avatar
Gregor Anzelj committed
16
17
     | UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | member |
     | UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | member |
18

19
20
21
22
23
24
25
26
27
28
Scenario: Verifying user's Authentication Method only displays Institutions they are associated with
    Given I log in as "admin" with password "Kupuh1pa!"
    And I choose "User search" in "Users" from administration menu
    When I follow "Angela"
    And I follow "Account settings"
    Then I should see "Authentication method"
    And the "Authentication method" select box should contain "Institution One: internal"
    And the "Authentication method" select box should contain "No Institution: Internal"
    And the "Authentication method" select box should not contain "Institution Two: internal"

29
Scenario: Accessing user reports
30
31
32
33
34
35
36
    Given I log in as "admin" with password "Kupuh1pa!"
    And I choose "User search" in "Users" from administration menu
    And I check "selectusers_2"
    And I check "selectusers_3"
    And I press "Get reports"
    Then I should see "User details"
    And I should see "2 users selected"