From d8ada0f19b102e48975946026b4af89ee1d7e2b2 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 13 Aug 2015 15:03:45 +0800 Subject: [PATCH] MDL-51101 behat: Removed old behat steps checking feature This was introduced when there were no features testing all the steps. Now we have all use-cases so removing this feature file --- .../behat/tests/behat/basic_actions.feature | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 admin/tool/behat/tests/behat/basic_actions.feature diff --git a/admin/tool/behat/tests/behat/basic_actions.feature b/admin/tool/behat/tests/behat/basic_actions.feature deleted file mode 100644 index 86bfdaa9648..00000000000 --- a/admin/tool/behat/tests/behat/basic_actions.feature +++ /dev/null @@ -1,54 +0,0 @@ -@tool @tool_behat -Feature: Page contents assertions - In order to write good tests - As a tests writer - I need to check the page contents - - @javascript - Scenario: Basic contents assertions - Given I log in as "admin" - And I am on site homepage - And I expand "Users" node - And I follow "Groups" - And I press "Create group" - And I set the following fields to these values: - | Group name | I'm the name | - | Group description | I'm the description | - And I press "Save changes" - When I follow "Overview" - And I wait until the page is ready - And I wait "2" seconds - And I hover "#region-main .generaltable td span" "css_element" - Then I should see "I'm the description" - And "Grouping" "select" in the "region-main" "region" should be visible - And "Group" "select" should be visible - And "Activity report" "link" in the "Administration" "block" should not be visible - And "Event monitoring rules" "link" should not be visible - And I should see "Filter groups by" - And I should not see "Filter groupssss by" - And I should see "Group members" in the "#region-main table th.c1" "css_element" - And I should not see "Group membersssss" in the "#region-main table th.c1" "css_element" - And I follow "Groups" - And the "#groupeditform #showcreateorphangroupform" "css_element" should be enabled - And the "#groupeditform #showeditgroupsettingsform" "css_element" should be disabled - - @javascript - Scenario: Locators inside specific DOM nodes using CSS selectors - Given the following "courses" exist: - | fullname | shortname | category | - | Course 1 | C1 | 0 | - And I log in as "admin" - And I am on site homepage - And I follow "Course 1" - When I dock "Administration" block - Then I should not see "Question bank" in the ".block-region" "css_element" - And I click on "//div[@id='dock']/descendant::h2[normalize-space(.)='Administration']" "xpath_element" - - @javascript - Scenario: Locators inside specific DOM nodes using XPath - Given the following "courses" exist: - | fullname | shortname | category | - | Course 1 | C1 | 0 | - And I log in as "admin" - When I dock "Administration" block - Then I should not see "Turn editing on" in the ".block-region" "css_element"