Commit 2447fbf5 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Behat Testsuite: Tidying admin feature files (Bug #1446395)"

parents 1c17158a 67472674
@javascript @core @core_administration
Feature: Creating an institution then adding users in different roles
In order to add users to the institution
As an admin I need to create an user and give institution privileges
So I can add it to the institution
Scenario: Creating an institution and users
# Log in as "Admin" user
Given I log in as "admin" with password "Password1"
# Verifying log in was successful
And I should see "Admin User"
# Creating an Institution
And I follow "Administration"
And I follow "Institutions"
And I press "Add institution"
And I fill in the following:
| Institution name | institutionone |
| Institution display name | institution One |
And I press "Submit"
# Verifying Institution was created successfully
And I should see "Institution added successfully"
# Creating user 1 as Institution administrator"
Then I follow "Users"
And I choose "Add user" in "Users"
And I fill in the following:
| firstname | bob |
| lastname | bobby |
| email | bob@example.com |
| username | bob |
| password | mahara1 |
And I select "institution One" from "Institution"
And I check "Institution administrator"
And I press "Create user"
# Creating user 2 as a normal Institution member
And I follow "Users"
And I choose "Add user" in "Users"
And I fill in the following:
| firstname | Jen |
| lastname | Jenny |
| email | jen@example.com |
| username | jen |
| password | mahara1 |
And I select "institution One" from "Institution"
And I press "Create user"
# Verifying user was added successfully
And I should see "New user account created successfully"
@javascript @core @core_administration
Feature: Configuration of menus page in site configuration
In order to be able to change the menu configuration
As an admin
So I can benefit from the use of the configuration changes
Scenario: Turning switches on and off on Menus page in Configure site (Bug 1431569)
Given I log in as "admin" with password "Password1"
And I follow "Administration"
And I choose "Menus" in "Configure site"
# Checking the default settings are correct
And the following fields match these values:
| Terms and conditions | 0 |
| Privacy statement | 1 |
| About | 1 |
| Contact us | 1 |
# Flicking the switches to the opposite
And I set the following fields to these values:
| Terms and conditions | 1 |
| Privacy statement | 0 |
| About | 0 |
| Contact us | 0 |
# Checking the switches held the setting
And the following fields match these values:
| Terms and conditions | 1 |
| Privacy statement | 0 |
| About | 0 |
| Contact us | 0 |
And I press "Save changes"
......@@ -28,3 +28,22 @@ Scenario: Creating and deleting external links (Selenium 1426983)
And I select "Logged-in links and resources" from "Edit:"
And I press "Delete"
And I press "Save changes"
# Checking the default settings are correct
And the following fields match these values:
| Terms and conditions | 0 |
| Privacy statement | 1 |
| About | 1 |
| Contact us | 1 |
# Flicking the switches to the opposite
And I set the following fields to these values:
| Terms and conditions | 1 |
| Privacy statement | 0 |
| About | 0 |
| Contact us | 0 |
# Checking the switches held the setting
And the following fields match these values:
| Terms and conditions | 1 |
| Privacy statement | 0 |
| About | 0 |
| Contact us | 0 |
And I press "Save changes"
@javascript @core @core_administration
@javascript @core @core_administration @core_group
Feature: Group categories settings
In order to enable group categories
As an admin
......
@javascript @core @core_administration
Feature: User options lang string and switch
In order to use the switch
As as admin
So change the settings
Scenario: Checking lang string on switch on site options user settings page (Bug 1432523 & 1431569)
Given I log in as "admin" with password "Password1"
And I go to "admin/site/options.php"
And I follow "User settings"
And the "Profile access for all registered users" checkbox should be checked
And I uncheck "Profile access for all registered users"
And I check "Profile access for all registered users"
And I should see "Profile access for all registered users"
And I press "Update site options"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment