Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
2447fbf5
Commit
2447fbf5
authored
May 27, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 27, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Behat Testsuite: Tidying admin feature files (Bug #1446395)"
parents
1c17158a
67472674
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
91 deletions
+20
-91
test/behat/features/admin/add_institution_and_users.feature
test/behat/features/admin/add_institution_and_users.feature
+0
-46
test/behat/features/admin/configure_menus.feature
test/behat/features/admin/configure_menus.feature
+0
-29
test/behat/features/admin/create_and_delete_menu_item.feature
.../behat/features/admin/create_and_delete_menu_item.feature
+19
-0
test/behat/features/admin/group_categories.feature
test/behat/features/admin/group_categories.feature
+1
-1
test/behat/features/admin/switch_site_options.feature
test/behat/features/admin/switch_site_options.feature
+0
-15
No files found.
test/behat/features/admin/add_institution_and_users.feature
deleted
100644 → 0
View file @
1c17158a
@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"
test/behat/features/admin/configure_menus.feature
deleted
100644 → 0
View file @
1c17158a
@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"
test/behat/features/admin/create_and_delete_menu_item.feature
View file @
2447fbf5
...
...
@@ -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"
test/behat/features/admin/group_categories.feature
View file @
2447fbf5
@javascript
@core
@core_administration
@javascript
@core
@core_administration
@core_group
Feature
:
Group categories settings
In order to enable group categories
As an admin
...
...
test/behat/features/admin/switch_site_options.feature
deleted
100644 → 0
View file @
1c17158a
@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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment