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

Bug 1765276: Fixing behat tests

- and removing css rules for behat testing.
They were added to increase performance by disabling
css features.
But we need the css transform rules to show the side links
when editing a page.

behatnotneeded

Change-Id: Ie69580b94532be23963b6de3bc77bbd717313e90
parent c8a57d71
......@@ -72,6 +72,8 @@ define ("LOCATOR_CONSTANTS", json_encode(array(
'Progressbar' => array("#progress_bar_fill.progress-bar", "css_element"),
'Inbox message icon' => array("#activitylist .card-header a span", "css_element"),
'Online users block' => array("#sb-onlineusers", "css_element"),
'Timeline Bar' => array(".timeline-bar", "css_element"),
'Show more tags' => array(".text-small .icon-ellipsis-h", "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"),
......@@ -80,8 +82,6 @@ define ("LOCATOR_CONSTANTS", json_encode(array(
'File Size' => array("//table[@id='files_filebrowser_filelist']/tbody/tr[1]/td[4]", "xpath_element"),
'Multirecipientnotification' => array("//li[@id='module.multirecipientnotification']", "xpath_element"),
'Country mandatory field' => array("//div[@id='pluginconfig_mandatory_container']/div[@class='checkboxes-option checkbox']/label[contains(text(),'Country')]", "xpath_element"),
'Timeline Bar' => array(".timeline-bar", "css_element"),
'Show more tags' => array(".with-heading.text-small .icon-ellipsis-h", "css_element"),
// xpath related to participation report
'Group views report tr1 tc1' => array("//*[@id='groupviewsreport']/tbody/tr[1]/td[1]", "xpath_element"),
'Group views report tr1 tc2' => array("//*[@id='groupviewsreport']/tbody/tr[1]/td[2]", "xpath_element"),
......
......@@ -8,15 +8,15 @@
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
-o-transform: none !important;
/* -o-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
-webkit-transform: none !important;
transform: none !important;
transform: none !important; */
/*CSS animations*/
-webkit-animation: none !important;
-moz-animation: none !important;
-o-animation: none !important;
-ms-animation: none !important;
animation: none !important;
}
\ No newline at end of file
}
......@@ -27,8 +27,9 @@ Scenario: Viewing a list of pages I watch from the dashboard (Bug 1444784)
And I am on homepage
And I scroll to the id 'bottom-pane'
And I follow "Page UserA_01"
And I press "More..."
And I press "More options"
And I follow "Add page to watchlist"
And I should see "This page has been added to your watchlist."
And I trigger cron
# Testing the unsubscribe link in the email sent
......@@ -37,5 +38,5 @@ Scenario: Viewing a list of pages I watch from the dashboard (Bug 1444784)
And I am on homepage
And I scroll to the id 'bottom-pane'
And I follow "Page UserA_01"
And I press "More..."
And I press "More options"
And I should see "Add page to watchlist"
......@@ -34,6 +34,7 @@ Scenario: Copying a group page retains title (Bug 1519374)
Given I log in as "UserB" with password "Kupuh1pa!"
And I am on homepage
When I follow "Page GroupA_01"
And I press "More options"
And I follow "Copy"
And the following fields match these values:
| Page title | Page GroupA_01 |
......
......@@ -89,4 +89,5 @@ Scenario: Check share page with groups and that copy options works
And I press "Search"
And I follow "Page UserA_03"
# check copy option is available
And I press "More options"
Then I should see "Copy"
......@@ -36,6 +36,7 @@ Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361
# Copy a page directly from its location
And I display the page
And I press "More options"
And I follow "Copy"
And I press "Save"
And I display the page
......@@ -60,6 +61,7 @@ Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361
# Copy a collection directly from its location
And I choose "Pages and collections" in "Create" from main menu
And I click on "Collection admin_01"
And I press "More options"
And I follow "Copy"
And I press "Collection"
And I press "Next: Edit collection pages"
......
......@@ -42,6 +42,7 @@ Feature: Mahara users can allow their tagged blogs tags to be copied
# Copy the page as same user
And I choose "Pages and collections" in "Create" from main menu
And I follow "Page UserA_01"
And I press "More options"
And I follow "Copy"
And I press "Save"
Then I should see "Journal entries with tags \"blog\", \"one\" but not tag \"two\""
......@@ -52,7 +53,7 @@ Feature: Mahara users can allow their tagged blogs tags to be copied
Given I log in as "UserB" with password "Kupuh1pa!"
And I scroll to the id "editdashboard"
And I follow "Page UserA_01"
And I scroll to the base of id "copyview-button"
And I press "More options"
And I follow "Copy"
And I press "Save"
Then I should see "Journal entries with tags \"blog\", \"one\" but not tag \"two\""
......
......@@ -109,6 +109,7 @@ Scenario: Creating a page with content in it (Bug 1426983)
And I wait "1" seconds
Then I should see "This is the edited page title"
When I follow "This is the edited page title"
And I press "More options"
And I follow "Copy"
And I fill in the following:
| Page title | This is my page now |
......
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