Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
1f3322b0
Commit
1f3322b0
authored
Feb 26, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 26, 2015
Browse files
Merge "Behat Test (Selenium): Add Institution and Users"
parents
3aebf9c0
0b05ea62
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/admin/add_institution_and_users.feature
0 → 100644
View file @
1f3322b0
@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"
Write
Preview
Supports
Markdown
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