Commit e4b63976 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1657565: New nav behat tests

behatnotneeded

Change-Id: Ifadc7e911efb905660c2a7bce0193551016a5fac
parent 5097eece
......@@ -8,6 +8,7 @@ Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
#Logging in and Creating a group
Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show Menu"
Then I follow "Groups"
Then I should see "My groups"
When I follow "Create group"
......@@ -18,6 +19,7 @@ Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
Then I should see "Group saved successfully"
#Creating a page to share with group
And I click on "Show Menu"
When I follow "Portfolio"
Then I should see "Pages"
And I follow "Add"
......@@ -34,14 +36,27 @@ Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
Then I should see "Edit access"
When I set the following fields to these values:
| accesslist[0][searchtype] | Test Group1 |
And I scroll to the base of id "main-nav"
Then I expand "Advanced options" node
And I set the following fields to these values:
| Allow comments | 0 |
Then I should see "Comments" in the "table#accesslisttable" "css_element"
And I scroll to the base of id "accesslisttable"
And I set the following fields to these values:
| accesslist[0][allowcomments] | 1 |
And I press "Save"
And I click on "Show Menu"
When I follow "Portfolio"
And I follow "Group page1"
And I follow "Edit this page"
When I follow "Share page"
And I scroll to the base of id "editaccess_more_container"
And I should see "Advanced options" in the "legend" "css_element"
And I follow "Advanced options" in the "legend" "css_element"
And I disable the switch "Allow comments"
And I scroll to the id "editaccess_submit_container"
And I press "Save"
And I click on "Show Menu"
When I follow "Portfolio"
And I follow "Group page1"
And I follow "Edit this page"
When I follow "Share page"
And I scroll to the base of id "editaccess_more_container"
And I check "accesslist[0][allowcomments]"
And I press "Save"
Then I should see "Share"
......
......@@ -36,31 +36,31 @@ Background:
Scenario: Testing that views & collections are collated properly
# Putting some comments on the pages
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "C1" panel collection
And I click on "P1A" in "C1" panel collection
And I fill in "I am on P1A" in editor "Message"
And I press "Comment"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "C1" panel collection
And I click on "P1B" in "C1" panel collection
And I fill in "I am on P1B" in editor "Message"
And I press "Comment"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click the panel "P2"
And I fill in "I am on P2" in editor "Message"
And I press "Comment"
When I log out
And I log in as "userB" with password "Kupuhipa1"
And I choose "Shared with me" in "Portfolio"
And I choose "Shared with me" in "Portfolio" from Main menu
Then I should see "page P2"
# I should see collections & individual pages
And I should see "C1 (2 pages)"
# I should not see pages in collections
# I should not see pages in collections
And I should not see "page P1B"
# I should see the latest comment from C1 only
And I should see "I am on P1B"
......
......@@ -19,7 +19,7 @@ Background:
Scenario: Testing that view access for views in collections are editable properly
# Checking the right selected options display on view access
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Collection One" panel collection
And I click on "Page 1" in "Collection One" panel collection
And I follow "Edit this page"
......@@ -27,7 +27,7 @@ Scenario: Testing that view access for views in collections are editable properl
Then I should see "Collection One"
And I should not see "Page 1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 2" panel menu
And I click on "Edit" in "Page 2" panel menu
And I follow "Share page"
......
......@@ -15,8 +15,7 @@ Background:
Scenario: Accessing help icons under Skin tabs (Bug 1411070)
Given I log in as "userA" with password "Kupuhipa1"
And I follow "Portfolio"
And I choose "Skins" in "Portfolio"
And I choose "Skins" in "Portfolio" from Main menu
When I click on "Help"
And I should see "Skins help you customise the look of your portfolio pages to give them a personal touch." in the "div#helpstop" element
And I follow "Close help"
......@@ -25,7 +24,7 @@ Scenario: Accessing help icons under Skin tabs (Bug 1411070)
| Skin access | private |
And I click on "Help"
Then I should see "You can design your own skin" in the "div#helpstop" element
And I choose "Skins" in "Portfolio"
And I choose "Skins" in "Portfolio" from Main menu
And I follow "Import skin(s)"
And I click on "Help"
And I should see "You can import skins from other Mahara sites." in the "div#helpstop" element
......@@ -6,18 +6,18 @@ I need to be able to activate Users can choose page themes setting
Scenario: Activate page themes setting and edit a page (Bug 1591304)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I click on "Show Administration Menu"
# I set the page themes option
And I follow "Configure site"
And I expand the section "User settings"
And I enable the switch "Users can choose page themes"
And I press "Update site options"
# Now edit a page
And I follow "Return to site"
And I click on "Show Menu"
And I follow "Portfolio"
And I follow "Add"
And I click on "Page" in the dialog
And I press "Save"
And I follow "Text"
And I press "Add"
And I press "Save"
\ No newline at end of file
And I press "Save"
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