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
f7eeee18
Commit
f7eeee18
authored
Feb 19, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 19, 2018
Browse files
Merge "Bug 1715299-Changing the admin user to normal user"
parents
81889951
429a4305
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/behat/features/site_features/tinymce_mathslate_plugin.feature
View file @
f7eeee18
...
...
@@ -23,4 +23,5 @@ Scenario: Making adjustments to the mathslate plugin for mahara (Bug 1472446)
And
I press
"Comment"
And
I choose
"Pages and collections"
in
"Configure site"
from administration menu
And
I follow
"Page mahara_01"
And
I wait
"1"
seconds
And
I should see
"αAβB"
test/behat/features/user_content/adding_pages_collection.feature
View file @
f7eeee18
@javascript
@core
@core_artefact
@core_portfolio
@core_collection
Feature
:
Adding pages to a collection
In order to add pages to a collection
As an
admin
I need pages
As an
normal user
I need pages
So I can add them to the collection
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
UserA
|
Kupuhipa1
|
UserA@example.org
|
Angela
|
User
|
mahara
|
internal
|
member
|
Given the following "pages" exist
:
|
title
|
description
|
ownertype
|
ownername
|
|
Page
admin
_01
|
Page
01
|
user
|
admin
|
|
Page
admin
_02
|
Page
02
|
user
|
admin
|
|
Page
admin
_03
|
Page
03
|
user
|
admin
|
|
AA
Page
admin
_04
|
Page
04
|
user
|
admin
|
|
Page
UserA
_01
|
Page
01
|
user
|
UserA
|
|
Page
UserA
_02
|
Page
02
|
user
|
UserA
|
|
Page
UserA
_03
|
Page
03
|
user
|
UserA
|
|
Page
UserA
_04
|
Page
04
|
user
|
UserA
|
Scenario
:
Creating a collection AND adding pages
# Log in as "
Admin
" user
Given
I log in as
"
admin
"
with password
"Kupuhipa1"
# Log in as "
Normal
" user
Given
I log in as
"
UserA
"
with password
"Kupuhipa1"
# Create Test collection
# This is the test for manually creating a collection
And
I choose
"Pages and collections"
in
"Portfolio"
from main menu
And
I follow
"Add"
And
I click on
"Collection"
in the dialog
...
...
@@ -27,8 +33,8 @@ Scenario: Creating a collection AND adding pages
And
I follow
"All"
Then
I press
"Add pages"
# Verifying that the pages were added
And
I should see
"Page
admin
_01"
And
I should see
"
AA
Page
admin
_04"
And
I should see
"Page
UserA
_01"
And
I should see
"Page
UserA
_04"
# Exporting pages and collections
And
I choose
"Export"
in
"Portfolio"
from main menu
...
...
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