Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mahara
mahara
Commits
2b15469b
Commit
2b15469b
authored
Jun 08, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Jun 08, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Behat Testsuite: Tidying features in Artefact (Bug #1446395)"
parents
47ea115a
2bb6e75c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
96 deletions
+49
-96
test/behat/features/artefact/blog/AddBlogs.feature
test/behat/features/artefact/blog/AddBlogs.feature
+0
-29
test/behat/features/artefact/blog/add_blogs.feature
test/behat/features/artefact/blog/add_blogs.feature
+29
-0
test/behat/features/artefact/collections/adding_pages_collection.feature
...ures/artefact/collections/adding_pages_collection.feature
+14
-19
test/behat/features/artefact/collections/feedback_configuration.feature
...tures/artefact/collections/feedback_configuration.feature
+1
-1
test/behat/features/artefact/collections/files_add_edit.feature
...ehat/features/artefact/collections/files_add_edit.feature
+1
-1
test/behat/features/artefact/collections/page_number_interval_sharedwithme.feature
...act/collections/page_number_interval_sharedwithme.feature
+1
-1
test/behat/features/artefact/collections/secret_url.feature
test/behat/features/artefact/collections/secret_url.feature
+2
-2
test/behat/features/artefact/collections/sort_portfolio.feature
...ehat/features/artefact/collections/sort_portfolio.feature
+0
-42
test/behat/features/artefact/résumé/resume_page.feature
test/behat/features/artefact/résumé/resume_page.feature
+1
-1
No files found.
test/behat/features/artefact/blog/AddBlogs.feature
deleted
100644 → 0
View file @
47ea115a
@javascript
@plugin
@artefact.blog
Feature
:
Mahara users can create their blogs
As a mahara user
I need to create blogs
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
userA
|
Password1
|
test01@example.com
|
Pete
|
Mc
|
mahara
|
internal
|
member
|
Scenario
:
create blogs
Given
I log in as
"userA"
with password
"Password1"
And I set the following account settings values
:
|
field
|
value
|
|
multipleblogs
|
1
|
|
tagssideblockmaxtags
|
10
|
When
I follow
"Settings"
And I fill in the following
:
|
tagssideblockmaxtags
|
10
|
And
I
check
"multipleblogs"
And
I press
"Save"
When
I go to
"artefact/blog/index.php"
Then
I should see
"Journals"
When
I click on
"Create journal"
And I fill in the following
:
|
title
|
My
new
journal
|
|
tags
|
blog
|
# And I set the field "description" to "<em> This is my new blog </em>"
And
I press
"Create journal"
Then
I should see
"My new journal"
\ No newline at end of file
test/behat/features/artefact/blog/add_blogs.feature
0 → 100644
View file @
2b15469b
@javascript
@core_artefact
Feature
:
Mahara users can create their blogs
As a mahara user
I need to create blogs
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
userA
|
Password1
|
test01@example.com
|
Pete
|
Mc
|
mahara
|
internal
|
member
|
Scenario
:
Create blogs
Given
I log in as
"userA"
with password
"Password1"
And I set the following account settings values
:
|
field
|
value
|
|
multipleblogs
|
1
|
|
tagssideblockmaxtags
|
10
|
When
I follow
"Settings"
And I fill in the following
:
|
tagssideblockmaxtags
|
10
|
And
I
check
"multipleblogs"
And
I press
"Save"
When
I go to
"artefact/blog/index.php"
And
I should see
"Journals"
When
I click on
"Create journal"
And I fill in the following
:
|
title
|
My
new
journal
|
|
tags
|
blog
|
And
I press
"Create journal"
Then
I should see
"My new journal"
test/behat/features/artefact/collections/adding_pages_collection.feature
View file @
2b15469b
@javascript
@core
@core_portfolio
@core_collection
@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
So I can add them to the collection
Scenario
:
Creating a collection AND adding pages
# 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"
# Create page 1
When
I follow
"Portfolio"
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
Testing
page
1
|
And
I
press
"Save"
# Create page 2
And
I follow
"Portfolio"
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
Testing
page
2
|
And
I
press
"Save"
# Create page 3
And
I follow
"Portfolio"
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
Testing
page
3
|
And
I
press
"Save"
Given the following "pages" exist
:
|
title
|
description
|
ownertype
|
ownername
|
|
Testing
page
1
|
UserD's
page
01
|
user
|
admin
|
|
Testing
page
2
|
UserD's
page
02
|
user
|
admin
|
|
Testing
page
3
|
UserA's
page
01
|
user
|
admin
|
# Create Test collection
And
I choose
"Collections"
in
"Portfolio"
And
I follow
"New collection"
...
...
@@ -41,3 +29,10 @@ Scenario: Creating a collection AND adding pages
And
I should see
"Testing page 1"
And
I should see
"Testing page 2"
And
I should see
"Testing page 3"
# Sort pages by Last modified
Then
I follow
"Portfolio"
And I select "Last modified" from "Sort by
:
"
And
I press
"Search"
# Checking they are in the right order
And
"Testing page 1"
"link"
should appear before
"Testing page 2"
"link"
And
"Testing page 2"
"link"
should appear before
"Testing page 3"
"link"
test/behat/features/artefact/collections/feedback_configuration.feature
View file @
2b15469b
@javascript
@core
@core_portfolio
@javascript
@core
_artefact
@core
@core_portfolio
Feature
:
Page feedback configuration
In order to change the settings for placing feedback for a page
As an admin
...
...
test/behat/features/artefact/collections/files_add_edit.feature
View file @
2b15469b
@javascript
@core
@core_content
@javascript
@core
@core_
artefact
@core_
content
Feature
:
Creating folders
In order to fill in a folder with content
As an admin I need to create a folder with other folders inside
...
...
test/behat/features/artefact/collections/page_number_interval_sharedwithme.feature
View file @
2b15469b
@javascript
@core
@core_portfolio
@javascript
@core
_artefact
@core
@core_portfolio
Feature
:
Adding more links to the jump list of the paginator on "Shared with me" page
In order to be able to see and follow hyperlinks to numbered page lists across paginator in regular intervals
As a student
...
...
test/behat/features/artefact/collections/secret_url.feature
View file @
2b15469b
@javascript
@core
@core_portfolio
@javascript
@core
@core_
artefact
@core_
portfolio
Feature
:
Button to reliably copy secret URLs
In order to copy a secret URLs
As an admin I need to create page
...
...
@@ -23,4 +23,4 @@ Scenario: Create a page and secret URLs to copy (Bug 1426983)
And
I press
"Add"
# Verifying Secret URLs was created
And
I choose
"Shared by me"
in
"Portfolio"
And
I should see
"1"
Then
I should see
"1"
test/behat/features/artefact/collections/sort_portfolio.feature
deleted
100644 → 0
View file @
47ea115a
@javascript
@core
@core_portfolio
Feature
:
Sort portfolio pages on portfolio page overview
In order to sort by pages
As an admin create pages
So I can sort them by their modified date
Scenario
:
Sort portfolio pages on portfolio page overview (Bug 1426983)
# 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 page 1
When
I follow
"Portfolio"
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
A1
|
And
I
press
"Save"
And
I follow
"Portfolio"
# Creating page 2
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
B2
|
And
I
press
"Save"
# Creating page 3
And
I follow
"Portfolio"
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
C3PO
|
And
I
press
"Save"
# Sort pages by Last modified
Then
I follow
"Portfolio"
And I select "Last modified" from "Sort by
:
"
And
I press
"Search"
# Checking they are all there and saved
And
I should see
"A1"
And
I should see
"B2"
And
I should see
"C3PO"
And
I should see
"Dashboard page"
And
I should see
"Profile page"
# Checking they are in the right order
And
"C3PO"
"link"
should appear before
"B2"
"link"
And
"B2"
"link"
should appear before
"A1"
"link"
test/behat/features/artefact/résumé/resume_page.feature
View file @
2b15469b
@javascript
@core
@core_artefact
@javascript
@core
@core_artefact
@core_content
Feature
:
Editing a Resume page
In order to edit a resume page
As an admin I need to go to Content
...
...
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