Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
1db65c3f
Commit
1db65c3f
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 up the User features (Bug #1446395)"
parents
9eb58409
05970a94
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
58 deletions
+3
-58
test/behat/features/user/AddusersbyCSV.feature
test/behat/features/user/AddusersbyCSV.feature
+0
-25
test/behat/features/user/Login.feature
test/behat/features/user/Login.feature
+0
-8
test/behat/features/user/Navigation.feature
test/behat/features/user/Navigation.feature
+0
-24
test/behat/features/user/search_users_by_share_pages.feature
test/behat/features/user/search_users_by_share_pages.feature
+3
-1
No files found.
test/behat/features/user/AddusersbyCSV.feature
deleted
100644 → 0
View file @
9eb58409
@javascript
@core
@admin
@user
Feature
:
Mahara admins can add users via CSV files
As a site or institution admin
I can add users via CSV files
Background
:
Given the following "institutions" exist
:
|
name
|
displayname
|
registerallowed
|
registerconfirm
|
|
instone
|
Institution
One
|
ON
|
OFF
|
|
insttwo
|
Institution
Two
|
ON
|
OFF
|
And the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
userA
|
Password1
|
test01@example.com
|
Pete
|
Mc
|
mahara
|
internal
|
admin
|
|
userB
|
Password1
|
test02@example.com
|
Son
|
Nguyen
|
instone
|
internal
|
admin
|
|
userC
|
Password1
|
test03@example.com
|
Jack
|
Smith
|
insttwo
|
internal
|
admin
|
Scenario
:
As a site admin, add users via CSV file
Given
I log in as
"userA"
with password
"Password1"
When
I go to
"admin/users/uploadcsv.php"
Then
I should see
"Add users by CSV"
When
I attach the file
"users.csv"
to
"uploadcsv_file"
And
I uncheck
"uploadcsv_forcepasswordchange"
And
I uncheck
"uploadcsv_emailusers"
And
I press
"uploadcsv_submit"
Then
I should see
"Your CSV file was processed successfully."
Then I should see "New users added
:
5."
\ No newline at end of file
test/behat/features/user/Login.feature
deleted
100644 → 0
View file @
9eb58409
Feature
:
Login
@javascript
Scenario
:
Login
Given
I am on homepage
When
I fill in
"login_username"
with
"admin"
And
I fill in
"login_password"
with
"Password1"
And
I press
"Login"
Then
I should see
"Dashboard"
\ No newline at end of file
test/behat/features/user/Navigation.feature
deleted
100644 → 0
View file @
9eb58409
@javascript
@core
@admin
@user
@navigation
Feature
:
Mahara users can navigate their portfolio
As a mahara user
I can navigate my portfolio
Scenario
:
Navigate portfolio
Given the following "institutions" exist
:
|
name
|
displayname
|
registerallowed
|
registerconfirm
|
|
instone
|
Institution
One
|
ON
|
OFF
|
|
insttwo
|
Institution
Two
|
ON
|
OFF
|
And the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
userA
|
Password1
|
test01@example.com
|
Pete
|
Mc
|
mahara
|
internal
|
admin
|
|
userB
|
Password1
|
test02@example.com
|
Son
|
Nguyen
|
instone
|
internal
|
admin
|
|
userC
|
Password1
|
test03@example.com
|
Jack
|
Smith
|
insttwo
|
internal
|
admin
|
Given
I am on homepage
When
I fill in
"login_username"
with
"userA"
And
I fill in
"login_password"
with
"Password1"
And
I press
"Login"
Then
I should see
"Dashboard"
And
I choose
"Content"
And
I should see
"Profile"
And
I choose
"Collections"
in
"Portfolio"
And
I should see
"Collections"
test/behat/features/user/search_users_by_share_pages.feature
View file @
1db65c3f
@javascript
@core_portfolio
@javascript
@core_user
@core_portfolio
Feature
:
Searching by user in Shared Pages
In order to search by name on the shared with me page
As an admin I need to create users
...
...
@@ -10,6 +10,8 @@ Background:
|
bob
|
mahara1
|
bob@example.com
|
Bob
|
Bobby
|
mahara
|
internal
|
member
|
|
jen
|
mahara1
|
jen@example.com
|
Jen
|
Jenny
|
mahara
|
internal
|
member
|
Scenario
:
Create users and search for them (Bug 897586)
# Log in as the student user
Given
I log in as
"bob"
with password
"mahara1"
...
...
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