Merge branch 'MDL-60207-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Jun Pataleta 2018-06-14 10:29:11 +08:00
commit 3662898b7c

View 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