Commit 9dce59e3 authored by Robert Lyon's avatar Robert Lyon
Browse files

Last of the behat tests missing @core fixed up



Change-Id: I260db46eb83bb776f26790996b13fd0dcf555175
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 9e2d719f
@javascript @core_artefact
@javascript @core @core_artefact
Feature: Mahara users can create their blogs
As a mahara user
I need to create blogs
......@@ -17,7 +17,7 @@ Feature: Mahara users can create their blogs
When I follow "Settings"
And I fill in the following:
| tagssideblockmaxtags | 10 |
And I enable the switch "multipleblogs"
And I enable the switch "Multiple journals"
And I press "Save"
When I go to "artefact/blog/index.php"
And I should see "Journals"
......
@javascript @core_institution @core_administration
@javascript @core @core_institution @core_administration
Feature: Create an Institution
In order to create an institution
As an admin I need to go Administration
......@@ -14,12 +14,13 @@ Scenario: Creating an institution (selenium test)
And I follow "Institutions"
And I press "Add institution"
And I fill in the following:
| Institution name | Institution One |
| Institution name | Institution One |
And I press "Submit"
# Verifying the institution has been created
Then I should see "Institution added successfully"
# Adding some authentication options
And I select "webservice" from "dummySelect"
And I scroll to the base of id "dummySelect"
And I press "Add"
And I press "Submit"
@javascript @core_user @core_portfolio
@javascript @core @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
So I can search for them by name
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname |role |
| bob | mahara1 | bob@example.com | Bob | Bobby | mahara | internal | member |
| jen | mahara1 | jen@example.com | Jen | Jenny | mahara | internal | member |
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname |role |
| 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
......@@ -21,7 +19,7 @@ Scenario: Create users and search for them (Bug 897586)
And I follow "Portfolio"
And I press "Create page"
And I fill in the following:
| Page title | Testing page 1 |
| Page title | Testing page 1 |
And I press "Save"
# Verifying the page has been created
And I should see "Page saved successfully"
......@@ -29,7 +27,7 @@ Scenario: Create users and search for them (Bug 897586)
And I follow "Portfolio"
And I press "Create page"
And I fill in the following:
| Page title | Testing page 2 |
| Page title | Testing page 2 |
And I press "Save"
# Verifying the page has been created
And I should see "Page saved successfully"
......@@ -49,7 +47,7 @@ Scenario: Create users and search for them (Bug 897586)
And I follow "Portfolio"
And I press "Create page"
And I fill in the following:
| Page title | Testing page 3 |
| Page title | Testing page 3 |
And I press "Save"
# Verifying the page has been created
And I should see "Page saved successfully"
......@@ -57,7 +55,7 @@ Scenario: Create users and search for them (Bug 897586)
And I follow "Portfolio"
And I press "Create page"
And I fill in the following:
| Page title | Testing page 4 |
| Page title | Testing page 4 |
And I press "Save"
# Verifying the page has been created
And I should see "Page saved successfully"
......@@ -75,10 +73,11 @@ Scenario: Create users and search for them (Bug 897586)
And I choose "Shared with me" in "Portfolio"
# Entering Bob name in the search box
And I fill in the following:
| Search: | Bob |
| Search: | Bob |
And I follow "Advanced options"
# Searching for public pages
And I enable the switch "Public"
And I fill in the following:
| Public | 1 |
And I press "search_submit"
# Veryfing I have seen Bobs pages
Then I should see "page 1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment