Commit 429a4305 authored by Niranjan Bandi's avatar Niranjan Bandi Committed by Rebecca Blundell
Browse files

Bug 1715299-Changing the admin user to normal user

This should be a user test, not admin as we want to check that a user can add pages and collections.
Admin user is now changed to normal user

One of the failing tests was tinymce_mathslate_plugin.feature.
I was able to replicate this locally twice in 10 runs of the test.
Because of that I'm adding a 1 second wait to that test -rjb

Change-Id: Ie1fd1e08abda501669f7691a8efbf72d031e7fc7
parent 0c4434ee
......@@ -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"
@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
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname |role |
| UserA | Kupuhipa1 | | 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
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