Commit 86cdf511 authored by Rebecca Blundell's avatar Rebecca Blundell

Bug 1814194: Fix behat for bootstrap4

-replaced panels with cards
-added scroll steps for items displayed off the page
-@TODOs in add_tags.feature should be ignored for review
and fixed later.

Change-Id: I3a70448aba11fef4cab424c332606ea70e7ae736
parent d8312616
......@@ -572,110 +572,110 @@ EOF;
}
/**
* Click on the bottom right menu elipsis inside a list panel containing the specified text.
* Click on the bottom right menu elipsis inside a list card containing the specified text.
*
* @When /^I click on "(?P<row_text_string>(?:[^"]|\\")*)" panel menu$/
* @When /^I click on "(?P<row_text_string>(?:[^"]|\\")*)" card menu$/
* @param string $rowtext The list/table row text
* @throws ElementNotFoundException
*/
public function i_click_on_in_panel($rowtext) {
public function i_click_on_in_card($rowtext) {
// The panel container.
// The card container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the panel containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'panel', ' '))" .
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the card containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'card', ' '))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]";
$rownode = $this->find('xpath', $xpath, $exception);
// Click on the elipsis button for the panel
$jscode = "jQuery(\"div.panel h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.panel-footer').find('.page-controls .moremenu')[0].click();";
// Click on the elipsis button for the card
$jscode = "jQuery(\"div.card h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.card-footer').find('.page-controls .moremenu')[0].click();";
$this->getSession()->executeScript($jscode);
}
/**
* Click on the bottom right collection menu inside a list panel containing the specified text.
* Click on the bottom right collection menu inside a list card containing the specified text.
*
* @When /^I click on "(?P<row_text_string>(?:[^"]|\\")*)" panel collection$/
* @When /^I click on "(?P<row_text_string>(?:[^"]|\\")*)" card collection$/
* @param string $rowtext The list/table row text
* @throws ElementNotFoundException
*/
public function i_click_on_in_panel_collection_box($rowtext) {
public function i_click_on_in_card_collection_box($rowtext) {
// The panel container.
// The card container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the panel containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'panel', ' '))" .
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the card containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'card', ' '))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]";
$rownode = $this->find('xpath', $xpath, $exception);
// Click on the collection box for the panel
$jscode = "jQuery(\"div.panel h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.panel-footer').find('.collection-list')[0].click();";
// Click on the collection box for the card
$jscode = "jQuery(\"div.card h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.card-footer').find('.collection-list')[0].click();";
$this->getSession()->executeScript($jscode);
}
/**
* Click on the link or button inside a panel menu containing the specified text.
* Click on the link or button inside a card menu containing the specified text.
*
* @When /^I click on "(?P<link_or_button>(?:[^"]|\\")*)" in "(?P<row_text_string>(?:[^"]|\\")*)" panel menu$/
* @When /^I click on "(?P<link_or_button>(?:[^"]|\\")*)" in "(?P<row_text_string>(?:[^"]|\\")*)" card menu$/
* @param string $link_or_button we look for
* @param string $rowtext The panel menu text
* @param string $rowtext The card menu text
* @throws ElementNotFoundException
*/
public function i_click_on_in_panel_menu($link_or_button, $rowtext) {
public function i_click_on_in_card_menu($link_or_button, $rowtext) {
// The panel container.
// The card container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the panel containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'panel', ' '))" .
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the card containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'card', ' '))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]";
$rownode = $this->find('xpath', $xpath, $exception);
// Click on the elipsis button for the panel
$jscode = "jQuery(\"div.panel h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.panel-footer').find('.page-controls a:contains(" . $this->escapeDoubleQuotes($link_or_button) . ")')[0].click();";
// Click on the elipsis button for the card
$jscode = "jQuery(\"div.card h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.card-footer').find('.page-controls a:contains(" . $this->escapeDoubleQuotes($link_or_button) . ")')[0].click();";
$this->getSession()->executeScript($jscode);
}
/**
* Click on the link or button inside a panel access menu containing the specified text.
* Click on the link or button inside a card access menu containing the specified text.
*
* @When /^I click on "(?P<link_or_button>(?:[^"]|\\")*)" in "(?P<row_text_string>(?:[^"]|\\")*)" panel access menu$/
* @When /^I click on "(?P<link_or_button>(?:[^"]|\\")*)" in "(?P<row_text_string>(?:[^"]|\\")*)" card access menu$/
* @param string $link_or_button we look for
* @param string $rowtext The panel menu text
* @param string $rowtext The card menu text
* @throws ElementNotFoundException
*/
public function i_click_on_in_panel_access_menu($link_or_button, $rowtext) {
public function i_click_on_in_card_access_menu($link_or_button, $rowtext) {
// The panel container.
// The card container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the panel access containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'panel', ' '))" .
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the card access containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'card', ' '))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]";
$rownode = $this->find('xpath', $xpath, $exception);
// Click on the elipsis button for the panel
$jscode = "jQuery(\"div.panel h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.panel-footer').find('.page-access a:contains(" . $this->escapeDoubleQuotes($link_or_button) . ")')[0].click();";
// Click on the elipsis button for the card
$jscode = "jQuery(\"div.card h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.card-footer').find('.page-access a:contains(" . $this->escapeDoubleQuotes($link_or_button) . ")')[0].click();";
$this->getSession()->executeScript($jscode);
}
/**
* Click on the link or button inside a panel collection list containing the specified text.
* Click on the link or button inside a card collection list containing the specified text.
*
* @When /^I click on "(?P<link_or_button>(?:[^"]|\\")*)" in "(?P<row_text_string>(?:[^"]|\\")*)" panel collection$/
* @When /^I click on "(?P<link_or_button>(?:[^"]|\\")*)" in "(?P<row_text_string>(?:[^"]|\\")*)" card collection$/
* @param string $link_or_button we look for
* @param string $rowtext The panel menu text
* @param string $rowtext The card menu text
* @throws ElementNotFoundException
*/
public function i_click_on_in_panel_collection_menu($link_or_button, $rowtext) {
public function i_click_on_in_card_collection_menu($link_or_button, $rowtext) {
// The panel container.
// The card container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the panel containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'panel', ' '))" .
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the card containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'card', ' '))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]";
$rownode = $this->find('xpath', $xpath, $exception);
// Click on the elipsis button for the panel
$jscode = "jQuery(\"div.panel h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.panel-footer').find(\"a:contains(" . $this->escapeDoubleQuotes($link_or_button) . ")\")[0].click();";
// Click on the elipsis button for the card
$jscode = "jQuery(\"div.card h3:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\").siblings('.card-footer').find(\"a:contains(" . $this->escapeDoubleQuotes($link_or_button) . ")\")[0].click();";
$this->getSession()->executeScript($jscode);
}
......@@ -706,23 +706,23 @@ EOF;
}
/**
* Click a panel header containing the specified text.
* Click a card header containing the specified text.
*
* @When /^I click the panel "(?P<row_text_string>(?:[^"]|\\")*)"$/
* @param string $rowtext the panel heading text
* @When /^I click the card "(?P<row_text_string>(?:[^"]|\\")*)"$/
* @param string $rowtext the card heading text
* @throws ElementNotFoundException
*/
public function i_click_panel($rowtext) {
public function i_click_card($rowtext) {
// The panel container.
// The card container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the panel containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'panel', ' '))" .
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the card containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'card', ' '))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]" .
"//a[contains(concat(' ', normalize-space(@class), ' '), ' title-link ')]";
$rownode = $this->find('xpath', $xpath, $exception);
$jscode = "jQuery(\"div.panel h3 a.title-link:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\")[0].click();";
$jscode = "jQuery(\"div.card h3 a.title-link:contains(" . $this->escapeDoubleQuotes($rowtextliteral) . ")\")[0].click();";
$this->getSession()->executeScript($jscode);
}
......
......@@ -66,9 +66,12 @@ define ("LOCATOR_CONSTANTS", json_encode(array(
'User menu' => array(".icon-chevron-down.collapsed", "css_element"),
'Signoff page' => array("#signoff-confirm-form", "css_element"),
'Verify page' => array("#verify-confirm-form", "css_element"),
'Progressbar block' => array("#sb-progressbar h3.panel-heading", "css_element"),
'Display page button' => array("#view-wizard-controls .btn-secondary:nth-of-type(1)", "css_element"),
'Return to pages and collections button' => array("#view-wizard-controls .btn-secondary:nth-of-type(2)", "css_element"),
'Progressbar block' => array("#sb-progressbar h3.card-header", "css_element"),
'Progressbar' => array("#progress_bar_fill.progress-bar", "css_element"),
'Inbox message icon' => array("#activitylist .panel-heading a span", "css_element"),
'Inbox message icon' => array("#activitylist .card-header a span", "css_element"),
// properties with xpath_elements
'Settings sub-menu' => array("//span[@innertext='Settings']", "xpath_element"),
'Settings' => array("//ul[#'userchildmenu-8']/?/?/a[@innertext='Settings']", "xpath_element"),
......
......@@ -116,8 +116,11 @@ label,
.checkbox {
position: relative;
display: block;
// margin-top: 10px;
margin-bottom: 10px;
margin-top: 10px;
input.checkboxes,
input.radio {
z-index: 3;
}
label {
min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
......
......@@ -50,7 +50,7 @@ Scenario: Creating institution tags
And I press "Save entry"
Given I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I follow "Settings" in the "Toolbar buttons" property
And I fill in select2 input "settings_tags" with "One tag" and select "Institution One: One tag (1)"
And I fill in select2 input "settings_tags" with "Test" and select "Test"
......
......@@ -16,7 +16,7 @@ Given the following "users" exist:
Scenario: Make Text Block Retractable
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I follow "Text"
And I press "Add"
And I set the field "Block title" to "Text Block 1"
......
......@@ -23,6 +23,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
| password | Mahara#1 |
And I select "Institution One" from "Institution"
And I enable the switch "Institution administrator"
And I scroll to the base of id "adduser_submit"
And I press "Create user"
# Creating user 2
And I choose "Add user" in "Users" from administration menu
......@@ -33,6 +34,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
| username | jen |
| password | Mahara#1 |
And I select "Institution One" from "Institution"
And I scroll to the base of id "adduser_submit"
And I press "Create user"
# Log out as user admin
And I log out
......
......@@ -178,8 +178,7 @@ These list must take into account the sort option chosen in the block config (Bu
And I follow "GroupA (Administrator)"
And I should see "Page UserB_01"
And I follow "Pages and collections (tab)"
And I click on "Group homepage" panel menu
And I click on "Edit" in "Group homepage" panel menu
And I click on "Edit" in "Group homepage" card menu
And I scroll to the id "column-container"
And I configure the block "Group portfolios"
......@@ -191,8 +190,7 @@ These list must take into account the sort option chosen in the block config (Bu
And I display the page
# Update the group page "Page GroupA_06"
And I follow "Pages and collections (tab)"
And I click on "Page GroupA_06" panel menu
And I click on "Edit" in "Page GroupA_06" panel menu
And I click on "Edit" in "Page GroupA_06" card menu
And I follow "Settings" in the "Toolbar buttons" property
And I set the field "Page description" to "<p>Group page 06 (updated)</p>"
And I scroll to the id "settings_submit"
......@@ -212,8 +210,7 @@ These list must take into account the sort option chosen in the block config (Bu
And I should not see "Page GroupA_06" in the "Group portfolios" property
# Update the shared page "Page UserA_01"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I follow "Settings" in the "Toolbar buttons" property
And I set the field "Page description" to "<p>Page 01 (updated)</p>"
And I scroll to the id "settings_submit"
......@@ -229,8 +226,7 @@ These list must take into account the sort option chosen in the block config (Bu
And I should not see "Page UserA_01" in the "Pages shared with this group" property
# Update the shared collection "Collection UserA_06"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Collection UserA_06" panel menu
And I click on "Edit" in "Collection UserA_06" panel menu
And I click on "Edit" in "Collection UserA_06" card menu
And I fill in "Collection description" with "Collection 06 (updated)"
And I scroll to the id "edit_submit"
And I press "Save"
......
......@@ -87,6 +87,7 @@ Scenario: Checking menu items are available as Admin User (Bug 1467368)
And I should see "Pages and collections" in the "Configure site sub-menu" property
And I should see "Journals" in the "Configure site sub-menu" property
And I should see "Share" in the "Configure site sub-menu" property
And I scroll to the base of id "navadmin"
And I should see "Files" in the "Configure site sub-menu" property
And I should see "Cookie Consent" in the "Configure site sub-menu" property
# Checking the sub navigation in Users
......@@ -117,6 +118,7 @@ Scenario: Checking menu items are available as Admin User (Bug 1467368)
And I should see "Profile completion" in the "Institutions sub-menu" property
And I should see "Pages and collections" in the "Institutions sub-menu" property
And I should see "Journals" in the "Institutions sub-menu" property
And I scroll to the base of id "navadmin"
And I should see "Share" in the "Institutions sub-menu" property
And I should see "Files" in the "Institutions sub-menu" property
And I should see "Pending registrations" in the "Institutions sub-menu" property
......@@ -175,6 +177,7 @@ Scenario: Checking menu items are available as Institution Administrator (Bug 14
And I should see "Files" in the "Institutions sub-menu" property
And I should see "Pending registrations" in the "Institutions sub-menu" property
# Checking Reports menu
And I scroll to the base of id "navadmin"
And I should see "Reports"
#Checking the user menu navigation headings
......
......@@ -38,8 +38,7 @@ Scenario: Accessing annotation block
# Update 'Test collection' to have smart evidence
And I choose "Pages and collections" in "Create" from main menu
And I click on "Collection admin_01" panel menu
And I click on "Edit" in "Collection admin_01" panel menu
And I click on "Edit" in "Collection admin_01" card menu
And I select "Title of your framework" from "SmartEvidence framework"
And I press "Save"
And follow "Collection admin_01"
......
......@@ -17,8 +17,7 @@ Scenario: Add some externalfeed blocks
# RSS or Atom format
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I expand "External" node
And I follow "External feed"
And I press "Add"
......
......@@ -56,15 +56,14 @@ Scenario: Installing framework module and activating for an institution
# Adding framework to existing collection
And I choose "Pages and collections" in "Create" from main menu
And I click on "Collection admin_01" panel menu
And I click on "Edit" in "Collection admin_01" panel menu
And I click on "Edit" in "Collection admin_01" card menu
And I select "Title of your framework" from "SmartEvidence framework"
And I press "Save"
Then I should see "Collection saved successfully."
# Testing the collection navigation and matrix carousel
And I choose "Pages and collections" in "Create" from main menu
And I click the panel "Collection admin_01"
And I click the card "Collection admin_01"
And I should see "You are on page 1/9"
And I should see "by Admin User (admin)"
And I press "Next" in the "matrix table" property
......@@ -90,7 +89,7 @@ Scenario: Installing framework module and activating for an institution
# Re-click a matrix point to add some feedback
And I choose "Pages and collections" in "Create" from main menu
And I click the panel "Collection admin_01"
And I click the card "Collection admin_01"
And I click on the matrix point "3,4"
And I fill in "This is annotation feedback" in editor "Feedback"
And I press "Place feedback"
......
......@@ -52,7 +52,7 @@ Scenario: SmartEvidence interaction by member / staff
Then I should see "Pages and collections"
# Mahara member makes page visible to public
And I click on "Manage access" in "Smart Evidence Collection 1" panel access menu
And I click on "Manage access" in "Smart Evidence Collection 1" card access menu
And I select "Public" from "accesslist[0][searchtype]"
And I click on "Save"
And I click on "Return to pages and collections"
......
......@@ -16,7 +16,7 @@ Background:
Scenario:
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I expand "General" node
And I follow "Creative Commons license"
And I press "Add"
......
......@@ -18,8 +18,7 @@ Scenario: Open badges block
# So all we can do is check that the block exists and saves to a page
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I expand "External" node
And I scroll to the base of id "content-editor-foldable"
And I follow "Open Badges"
......
......@@ -62,7 +62,7 @@ Scenario: Create forum and add block to group page
And I log out
And I log in as "UserC" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page UserC_01" panel menu
And I click on "Edit" in "Page UserC_01" card menu
And I expand "General" node
And I follow "Recent forum posts"
And I press "Add"
......
......@@ -64,7 +64,7 @@ Scenario: 1) Mahara member creates a collection of 3 pages and submits for marki
Then I should see "Pages and collections"
# Mahara member makes to page visible to public
And I click on "Manage access" in "Smart Evidence Collection 1" panel access menu
And I click on "Manage access" in "Smart Evidence Collection 1" card access menu
And I select "Public" from "accesslist[0][searchtype]"
And I click on "Save"
And I click on "Return to pages and collections"
......
......@@ -61,8 +61,7 @@ Scenario: Add comments block to page
And I press "Comment"
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I wait "1" seconds
# Add a comments block so that comments will now be at the top of the page
And I expand "General" node
......
......@@ -39,8 +39,7 @@ Scenario: When a collection is shared and a page is deleted from the collection
And I press "Save"
# Delete a page from the collection
Then I choose "Pages and collections" in "Create" from main menu
And I click on "Collection UserA_01" panel menu
And I click on "Manage" in "Collection UserA_01" panel menu
And I click on "Manage" in "Collection UserA_01" card menu
And I click on "Remove" in "Page UserA_01" row
And I log out
......
......@@ -39,7 +39,7 @@ Scenario: As a user leaving a public comment on a group page (Bug 1509129)
# Needs to navigate to see the comment and check it can be seen publicly
When I follow "GroupA"
When I follow "Pages and collections (tab)"
And I click the panel "Page GroupA_01"
And I click the card "Page GroupA_01"
Then I should see "Adding a comment to this field. Student = Awesome!" in the "Comment text" property
# As part of consolidating behat tests, this scenario has been added.
......
......@@ -56,17 +56,17 @@ Scenario: In the participation report pages should be seen in a collection
# Making group page 01 public
When I click on "Group one"
And I click on "Pages and collections" in the "Arrow-bar nav" property
And I click on "Manage access" in "Group collection 01" panel access menu
And I click on "Manage access" in "Group collection 01" card access menu
And I select "Public" from "accesslist[0][searchtype]"
And I press "Save"
# Making group page 03 public
When I click on "Pages and collections" in the "Arrow-bar nav" property
And I click on "Manage access" in "Group page 03" panel access menu
And I click on "Manage access" in "Group page 03" card access menu
And I select "Public" from "accesslist[0][searchtype]"
And I press "Save"
# Making group page 04 public
When I click on "Pages and collections" in the "Arrow-bar nav" property
And I click on "Manage access" in "Group page 04" panel access menu
And I click on "Manage access" in "Group page 04" card access menu
And I select "Public" from "accesslist[0][searchtype]"
And I press "Save"
# UserA comments on group page 01
......
......@@ -18,7 +18,7 @@ Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page admin_01" panel menu
And I click on "Edit" in "Page admin_01" card menu
# Sharing Page
And I follow "Share" in the "Toolbar buttons" property
And I set the following fields to these values:
......@@ -28,7 +28,7 @@ Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
And I press "Save"
When I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page admin_01" panel menu
And I click on "Edit" in "Page admin_01" card menu
When I follow "Share" in the "Toolbar buttons" property
And I scroll to the base of id "accessurl_more_open"
And I check "accesslist[0][allowcomments]"
......@@ -36,7 +36,7 @@ Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
# Checking if checked option worked
When I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page admin_01" panel menu
And I click on "Edit" in "Page admin_01" card menu
When I follow "Share" in the "Toolbar buttons" property
Then I should see "Edit access"
And I expand the section "Advanced options"
......
......@@ -36,7 +36,7 @@ Scenario: Check share page with friends
And I follow "pending friend"
And I click on "Approve request"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Manage access" in "Page UserB_02" panel access menu
And I click on "Manage access" in "Page UserB_02" card access menu
And I select "Friends" from "General" in shared with select2 box
And I press "Save"
And I log out
......@@ -53,7 +53,7 @@ Scenario: Check share page with Registered Users
Given I log in as "UserA" with password "Kupuh1pa!"
# Edit access for Page 03
And I choose "Pages and collections" in "Create" from main menu
And I click on "Manage access" in "Page UserA_03" panel access menu
And I click on "Manage access" in "Page UserA_03" card access menu
And I select "Registered users" from "General" in shared with select2 box
And I press "Save"
And I log out
......@@ -72,7 +72,7 @@ Scenario: Check share page with groups and that copy options works
Given I log in as "UserA" with password "Kupuh1pa!"
# Edit access for Page 03
And I choose "Pages and collections" in "Create" from main menu
And I click on "Manage access" in "Page UserA_03" panel access menu
And I click on "Manage access" in "Page UserA_03" card access menu
And I select "GroupA" from "Groups" in shared with select2 box
And I select "GroupB" from "Groups" in shared with select2 box
And I expand "Advanced options" node
......
......@@ -37,19 +37,17 @@ Scenario: Testing that views & collections are collated properly
# Putting some comments on the pages
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Collection UserA_01" panel collection
And I click on "Page UserA_01" in "Collection UserA_01" panel collection
And I click on "Page UserA_01" in "Collection UserA_01" card collection
And I fill in "I am on UserA_01 page" in editor "Comment"
And I press "Comment"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Collection UserA_01" panel collection
And I click on "Page UserA_02" in "Collection UserA_01" panel collection
And I click on "Page UserA_02" in "Collection UserA_01" card collection
And I fill in "I am on UserA_02 page" in editor "Comment"
And I press "Comment"
And I choose "Pages and collections" in "Create" from main menu
And I click the panel "Page UserA_03"
And I click the card "Page UserA_03"
And I fill in "I am on Page UserA_03" in editor "Comment"
And I press "Comment"
......
......@@ -39,7 +39,7 @@ Scenario: Creating and accessing social media buttons (Bug 1448948)
And I fill in "maharayahoo" for "Your URL or username"
And I press "Save"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I expand "Personal info" node
And I follow "Social media"
And I press "Add"
......
......@@ -56,7 +56,7 @@ Feature: Mahara users can create their blogs
And I fill in select2 input "editpost_tags" with "blogentry" and select "blogentry"
And I press "Save entry"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Edit" in "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" card menu
And I expand "Journals" node in the "blocktype sidebar" property
And I follow "Tagged journal entries"
And I press "Add"
......
......@@ -17,8 +17,7 @@ Scenario:
# Logging in as a user
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Create" from main menu
And I click on "Page UserA_01" panel menu