Merge branch 'MDL-60207-master' of git://github.com/andrewnicols/moodle
authorJun Pataleta <jun@moodle.com>
Thu, 14 Jun 2018 02:29:11 +0000 (10:29 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 14 Jun 2018 02:29:11 +0000 (10:29 +0800)
lib/tests/behat/action_modal.feature

index 8a85aa6..81dc26c 100644 (file)
@@ -24,11 +24,14 @@ Feature: Close modals by clicking outside them
 
   @javascript
   Scenario: The popup closes when clicked on dead space - Modal
+    Given the following "courses" exist:
+      | fullname | shortname |
+      | Course 1 | C1        |
     And I log in as "admin"
-    And I click on "Site home" "link"
+    And I am on "Course 1" course homepage
     And I turn editing mode on
-    And I click on "Add a block" "link"
-    And I click on ".modal" "css_element"
+    And I click on "Add topics" "link"
+    When I click on "[data-region='modal-container']" "css_element"
     Then ".modal-backdrop" "css_element" should not be visible
     And ".modal-content" "css_element" should not be visible