MDL-59367 behat: Close the autocomplete

Close the auto complete suggestions list so it does not obscure the save changes button in chrome
This commit is contained in:
Damyon Wiese 2017-07-26 13:45:32 +08:00
parent b67caad9f5
commit e640eb5cc3

View File

@ -27,6 +27,7 @@ Feature: Edit user roles
And I click on "Student 1's role assignments" "link"
And I open the autocomplete suggestions list
And I click on "Non-editing teacher" item in the autocomplete list
And I press key "27" in the field "Student 1's role assignments"
When I click on "Save changes" "link"
Then I should see "Student, Non-editing teacher" in the "Student 1" "table_row"
@ -37,5 +38,6 @@ Feature: Edit user roles
And I navigate to course participants
And I click on "Student 1's role assignments" "link"
And I click on ".form-autocomplete-selection [aria-selected=true]" "css_element"
And I press key "27" in the field "Student 1's role assignments"
When I click on "Save changes" "link"
Then I should see "No roles" in the "Student 1" "table_row"