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
dd315154
Commit
dd315154
authored
Mar 01, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 01, 2016
Browse files
Merge "More @failed tests being fixed up to pass"
parents
172d0e95
1f8c0c07
Changes
4
Hide whitespace changes
Inline
Side-by-side
test/behat/features/artefact/collections/add_tags.feature
View file @
dd315154
@javascript
@core_content
@javascript
@core
@core_content
Feature
:
Adding tags and Verifying them
In order to add a tag
As an admin I need to be able to go Content
...
...
@@ -66,7 +66,7 @@ Scenario: Adding tags to files (Bug 1426983)
And
I press
"Add"
And
I fill in
"Tags"
with
"box, test"
And
I press
"Save"
And
I
follow
"Portfolio
"
And
I
go to
"/view/index.php
"
And
I wait
"1"
seconds
Then
I follow
"Tags"
# Verifying tags are saved
...
...
test/behat/features/artefact/collections/adding_pages_collection.feature
View file @
dd315154
@javascript
@core_artefact
@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
...
...
@@ -33,7 +33,7 @@ Scenario: Creating a collection AND adding pages
# Sort pages by Last modified
Then
I follow
"Portfolio"
And I select "Last modified" from "Sort by
:
"
And
I press
"Search"
And I press
the key "Enter" in the "Search
:
"
field
# Checking they are in the right order
And
I wait
"1"
seconds
And
"Testing page 1"
"link"
should appear before
"Testing page 2"
"link"
...
...
test/behat/features/artefact/collections/create_page.feature
View file @
dd315154
@javascript
@portfolio
@javascript
@core
@portfolio
Feature
:
Creating a page with stuff in it
In order to have a portfolio
As a user I need navigate to to portfolio
...
...
@@ -17,25 +17,25 @@ Scenario: Creating a page with content in it (Bug 1426983)
And
I
press
"Save"
# Adding media block
And
I expand
"Media"
node
And
I wait
until the page is ready
And
I wait
"1"
seconds
And
I follow
"File(s) to download"
And
I press
"Add"
And
I press
"Save"
# Adding Journal block
And
I expand
"Journals"
node in the
"div#content-editor-foldable"
"css_element"
And
I wait
until the page is ready
And
I wait
"1"
seconds
And
I follow
"Recent journal entries"
And
I press
"Add"
And
I press
"Save"
# Adding profile info block
And
I expand
"Personal info"
node
And
I wait
until the page is ready
And
I wait
"1"
seconds
And
I follow
"Profile information"
And
I press
"Add"
And
I press
"Save"
# Adding external media block - but cancel out
And
I expand
"External"
node
And
I wait
until the page is ready
And
I wait
"1"
seconds
And
I follow
"External media"
And
I press
"Add"
And
I press
"Remove"
...
...
test/behat/features/artefact/collections/social_media_buttons.feature
View file @
dd315154
@javascript
@core_artefact
@javascript
@core
@core_artefact
Feature
:
Visibility of social medial buttons
In order to view and click on the social media buttons
As a student
...
...
@@ -36,14 +36,16 @@ Scenario: Creating and accessing social media buttons (Bug 1448948)
And
I
follow
"Display
settings"
And
the field
"buttons with icons and text"
matches value
"1"
And
I press
"Save"
And
I follow
"Share page"
And
I wait
"10"
seconds
And
I go to
"/view/share.php"
And
I click on
"Edit access"
in
"Open source is for winners"
row
And
I wait
"1"
seconds
And
I select
"Public"
from
"accesslist[0][searchtype]"
And
I press
"Save"
And
I should see
"Access rules were updated for 1 page"
And
I follow
"Logout"
# Logging in as userB to try see the buttons
Given
I log in as
"userB"
with password
"Kupuhipa1"
And
I wait
"1"
seconds
And
I follow
"Open source is for winners"
And
I should see
"Social Media"
And
I should see
"Facebook"
...
...
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