forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-63125' of https://github.com/paulholden/moodle
- Loading branch information
Showing
8 changed files
with
49 additions
and
20 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@core @javascript @core_form | ||
Feature: Autocomplete functionality in forms | ||
For forms including autocomplete elements | ||
As a user | ||
I need to use the autocomplete form element | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | firstname | lastname | | ||
| user1 | Jane | Jones | | ||
| user2 | Sam | Smith | | ||
And I log in as "admin" | ||
|
||
Scenario: Use autocomplete element which accepts a single value | ||
When I navigate to "Users > Privacy and policies > Data requests" in site administration | ||
And I follow "New request" | ||
And I open the autocomplete suggestions list | ||
And I click on "Jane Jones" item in the autocomplete list | ||
Then "Jane Jones" "autocomplete_selection" should exist | ||
# Change selection | ||
And I open the autocomplete suggestions list | ||
And I click on "Sam Smith" item in the autocomplete list | ||
And "Sam Smith" "autocomplete_selection" should exist | ||
And "Jane Jones" "autocomplete_selection" should not exist | ||
# Remove selection | ||
And I click on "Sam Smith" "autocomplete_selection" | ||
And "Sam Smith" "autocomplete_selection" should not exist | ||
And I should see "No selection" in the ".form-autocomplete-selection" "css_element" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters