And I open the action menu in "John Doe" "table_row"
And I should see "View the request"
But I should not see "Mark as complete"
- And I press key "27" in ".moodle-actionmenu" "css_element"
+ And I press the escape key
And I open the action menu in "Jane Doe" "table_row"
And I choose "Mark as complete" in the open action menu
And I should see "Do you really want to mark this user enquiry as complete?"
And I click on ".form-autocomplete-downarrow" "css_element" in the "Lawful bases" "form_row"
And I click on "Contract (GDPR Art. 6.1(b))" "list_item"
And I click on "Legal obligation (GDPR Art 6.1(c))" "list_item"
- And I press key "27" in the field "Lawful bases"
+ And I press the escape key
And I click on ".form-autocomplete-downarrow" "css_element" in the "Sensitive personal data processing reasons" "form_row"
And I click on "Explicit consent (GDPR Art. 9.2(a))" "list_item"
- And I press key "27" in the field "Sensitive personal data processing reasons"
+ And I press the escape key
And I set the field "retentionperiodnumber" to "2"
When I press "Save"
Then I should see "Purpose 1" in the "List of data purposes" "table"
And I click on "Legal obligation (GDPR Art 6.1(c))" "text" in the ".form-autocomplete-selection" "css_element"
And I click on ".form-autocomplete-downarrow" "css_element" in the "Lawful bases" "form_row"
And I click on "Vital interests (GDPR Art. 6.1(d))" "list_item"
- And I press key "27" in the field "Lawful bases"
+ And I press the escape key
And I set the field "retentionperiodnumber" to "3"
And I click on "protected" "checkbox"
When I press "Save changes"
Then I should see "Test-Comp1"
And I should see "Test-Comp2"
And I set the field "Filter competencies by resource or activity" to "PageName1"
- And I press key "13" in the field "Filter competencies by resource or activity"
+ And I press the enter key
And I should see "Test-Comp1"
And I should not see "Test-Comp2"
And I set the field "Filter competencies by resource or activity" to "PageName2"
- And I press key "13" in the field "Filter competencies by resource or activity"
+ And I press the enter key
And I should not see "Test-Comp1"
And I should not see "Test-Comp2"
And I should see "No competencies have been linked to this activity or resource."
And I click on ".template-userplans" "css_element" in the "Science template" "table_row"
And I open the autocomplete suggestions list
And I click on "Admin User" item in the autocomplete list
- And I press key "27" in the field "Select users to create learning plans for"
+ And I press the escape key
When I click on "Create learning plans" "button"
Then I should see "A learning plan was created"
And I should see "Admin User" in the "Science template" "table_row"
And I click on ".template-cohorts" "css_element" in the "Science template cohort" "table_row"
And I click on ".form-autocomplete-downarrow" "css_element"
And I click on "cohort plan" item in the autocomplete list
- And I press key "27" in the field "Select cohorts to sync"
+ And I press the escape key
When I click on "Add cohorts" "button"
Then I should see "2 learning plans were created."
And I follow "Learning plan templates"
| Forum name | My forum name |
And I click on "Edit title" "link" in the "My forum name" activity in site main menu block
And I set the field "New name for activity My forum name" to "New forum name"
- And I press key "13" in the field "New name for activity My forum name"
+ And I press the enter key
Then I should not see "My forum name"
And I should see "New forum name"
And I follow "New forum name"
And I press "Save and return to course"
And I click on "Edit title" "link" in the "My forum name" activity in social activities block
And I set the field "New name for activity My forum name" to "New forum name"
- And I press key "13" in the field "New name for activity My forum name"
+ And I press the enter key
Then I should not see "My forum name" in the "Social activities" "block"
And I should see "New forum name"
And I follow "New forum name"
When I follow "Cohorts"
And I click on "Edit cohort name" "link" in the "Test cohort name" "table_row"
And I set the field "New name for cohort Test cohort name" to "Students cohort"
- And I press key "13" in the field "New name for cohort Test cohort name"
+ And I press the enter key
Then I should not see "Test cohort name"
And I should see "Students cohort"
And I follow "Cohorts"
Scenario: Inline edit section name in topics format
When I click on "Edit topic name" "link" in the "li#section-1" "css_element"
And I set the field "New name for topic Topic 1" to "Midterm evaluation"
- And I press key "13" in the field "New name for topic Topic 1"
+ And I press the enter key
Then I should not see "Topic 1" in the "region-main" "region"
And "New name for topic" "field" should not exist
And I should see "Midterm evaluation" in the "li#section-1" "css_element"
Scenario: Inline edit section name in weeks format
When I click on "Edit week name" "link" in the "li#section-1" "css_element"
And I set the field "New name for week 1 May - 7 May" to "Midterm evaluation"
- And I press key "13" in the field "New name for week 1 May - 7 May"
+ And I press the enter key
Then I should not see "1 May - 7 May" in the "region-main" "region"
And "New name for week" "field" should not exist
And I should see "Midterm evaluation" in the "li#section-1" "css_element"
# Rename activity
And I click on "Edit title" "link" in the "//div[contains(@class,'activityinstance') and contains(.,'Test forum name')]" "xpath_element"
And I set the field "New name for activity Test forum name" to "Good news"
- And I press key "13" in the field "New name for activity Test forum name"
+ And I press the enter key
Then I should not see "Test forum name" in the ".course-content" "css_element"
And "New name for activity Test forum name" "field" should not exist
And I should see "Good news"
# Cancel renaming
And I click on "Edit title" "link" in the "//div[contains(@class,'activityinstance') and contains(.,'Good news')]" "xpath_element"
And I set the field "New name for activity Good news" to "Terrible news"
- And I press key "27" in the field "New name for activity Good news"
+ And I press the escape key
And "New name for activity Good news" "field" should not exist
And I should see "Good news"
And I should not see "Terrible news"
And I am on "Course 1" course homepage
And I should see "Good news"
And I should not see "Terrible news"
- And I log out
And I navigate to "Courses > Course custom fields" in site administration
And I click on "Edit category name" "link" in the "//div[contains(@class,'categoryinstance') and contains(.,'Category for test')]" "xpath_element"
And I set the field "New value for Category for test" to "Good fields"
- And I press key "13" in the field "New value for Category for test"
+ And I press the enter key
Then I should not see "Category for test" in the "#customfield_catlist" "css_element"
And "New value for Category for test" "field" should not exist
And I should see "Good fields" in the "#customfield_catlist" "css_element"
And I click on "Group 1" item in the autocomplete list
And I click on ".form-autocomplete-downarrow" "css_element" in the "student1" "table_row"
And I click on "Group 2" item in the autocomplete list
- And I press key "27" in the field "Edit groups for \"Student 1\""
+ And I press the escape key
And I click on "Save changes" "link" in the "student1" "table_row"
Then I should see "Group 1, Group 2"
Then I should see a grade field for "Student 2" and grade item "Item VU"
And I should not see a feedback field for "Student 2" and grade item "Item VU"
And I set the field "ajaxgrade" to "33"
- And I press key "13" in the field "ajaxgrade"
+ And I press the enter key
And I should not see a grade field for "Student 2" and grade item "Item VU"
And I should not see a feedback field for "Student 2" and grade item "Item VU"
And I click on student "Student 3" for grade item "Item VU"
And I set the field "ajaxgrade" to "50"
- And I press key "13" in the field "ajaxgrade"
+ And I press the enter key
And I click on student "Student 3" for grade item "Item 1"
And I set the field "ajaxgrade" to "80"
- And I press key "13" in the field "ajaxgrade"
+ And I press the enter key
And I click on student "Student 3" for grade item "Item SU"
And I set the field "ajaxgrade" to "Very good"
- And I press key "13" in the field "ajaxgrade"
+ And I press the enter key
And the following should exist in the "user-grades" table:
| -1- | -6- | -7- | -13- | -16- |
| Student 2 | - | 33.00 | - | 33.00 |
And I should see a grade field for "Student 1" and grade item "Course total"
And I should not see a feedback field for "Student 1" and grade item "Course total"
And I set the field "ajaxgrade" to "90"
- And I press key "13" in the field "ajaxgrade"
+ And I press the enter key
And the following should exist in the "user-grades" table:
| -1- | -16- |
| Student 1 | 90.00 |
And I should see a feedback field for "Student 2" and grade item "Item VU"
And I set the field "ajaxgrade" to "33"
And I set the field "ajaxfeedback" to "Student 2 VU feedback"
- And I press key "13" in the field "ajaxfeedback"
+ And I press the enter key
And I click on student "Student 3" for grade item "Item VL"
And I should not see a grade field for "Student 3" and grade item "Item VL"
And I should not see a feedback field for "Student 3" and grade item "Item VL"
And I should not see a grade field for "Student 3" and grade item "Item TU"
And I should see a feedback field for "Student 3" and grade item "Item TU"
And I set the field "ajaxfeedback" to "Student 3 TU feedback"
- And I press key "13" in the field "ajaxfeedback"
+ And I press the enter key
And I click on student "Student 2" for grade item "Item SU"
And I set the field "ajaxgrade" to "Very good"
And I set the field "ajaxfeedback" to "Student 2 SU feedback"
- And I press key "13" in the field "ajaxfeedback"
+ And I press the enter key
# Reload grader report:
And I navigate to "View > User report" in the course gradebook
And I navigate to "View > Grader report" in the course gradebook
Then I should see a grade field for "Student 2" and grade item "Item VU"
And I should see a feedback field for "Student 2" and grade item "Item VU"
And I set the field "ajaxgrade" to "33"
- And I press key "13" in the field "ajaxgrade"
+ And I press the enter key
And I click on student "Student 2" for grade item "Course total"
And I should not see a grade field for "Student 3" and grade item "Course total"
And I should not see a feedback field for "Student 3" and grade item "Course total"
$suggestion->click();
} else {
// Press the return key to create a new tag.
- // Note: We cannot use $this->key_press() because the keyPress action, in combination with the keyDown
- // submits the form.
- $this->field->keyDown(13);
- $this->field->keyUp(13);
+ behat_base::type_keys($this->session, [behat_keys::ENTER]);
}
-
$this->wait_for_pending_js();
- $this->key_press(27);
+
+ // Press the escape to close the autocomplete suggestions list.
+ behat_base::type_keys($this->session, [behat_keys::ESCAPE]);
$this->wait_for_pending_js();
}
}
# The menu should now be visible.
Then ".usermenu [role='menu']" "css_element" should be visible
# Press down arrow.
- And I press key "40" in "#actionmenuaction-1" "css_element"
+ And I press the down key
# The menu should still be visible.
And ".usermenu [role='menu']" "css_element" should be visible
}
// Gets the node based on the requested selector type and locator.
$node = $this->get_selected_node($selectortype, $element);
- $driver = $this->getSession()->getDriver();
- if ($driver instanceof \Moodle\BehatExtension\Driver\MoodleSelenium2Driver) {
- $driver->post_key("\xEE\x80\x84", $node->getXpath());
- } else {
- $driver->keyDown($node->getXpath(), "\t");
- }
+ $this->execute('behat_general::i_click_on', [$node, 'NodeElement']);
+ $this->execute('behat_general::i_press_named_key', ['', 'tab']);
}
/**
* @throws DriverException
*/
public function i_manually_press_tab($shift = '') {
- if (!$this->running_javascript()) {
- throw new DriverException($shift . ' Tab press step is not available with Javascript disabled');
+ if (empty($shift)) {
+ $this->execute('behat_general::i_press_named_key', ['', 'tab']);
+ } else {
+ $this->execute('behat_general::i_press_named_key', ['shift', 'tab']);
}
-
- $value = ($shift == ' shift') ? [\WebDriver\Key::SHIFT . \WebDriver\Key::TAB] : [\WebDriver\Key::TAB];
- $this->getSession()->getDriver()->getWebDriverSession()->activeElement()->postValue(['value' => $value]);
}
/**
* @throws DriverException
*/
public function i_manually_press_enter() {
- if (!$this->running_javascript()) {
- throw new DriverException('Enter press step is not available with Javascript disabled');
- }
-
- $value = [\WebDriver\Key::ENTER];
- $this->getSession()->getDriver()->getWebDriverSession()->activeElement()->postValue(['value' => $value]);
+ $this->execute('behat_general::i_press_named_key', ['', 'enter']);
}
/**
And I open messaging
And I select "Student 2" user in messaging
And I set the field with xpath "//textarea[@data-region='send-message-txt']" to "Hi!"
- And I press key "13" in "//textarea[@data-region='send-message-txt']" "xpath_element"
+ And I press the enter key
Then I should see "Hi!" in the "//*[@data-region='message-drawer']//div[@data-region='content-message-container']" "xpath_element"
Scenario: Sending a message after 'Use enter to send' is disabled
And I go back in "view-settings" message drawer
Then I select "Student 2" user in messaging
And I set the field with xpath "//textarea[@data-region='send-message-txt']" to "Hi!"
- And I press key "13" in "//textarea[@data-region='send-message-txt']" "xpath_element"
+ And I press the enter key
And I should not see "Hi!" in the "//*[@data-region='message-drawer']//div[@data-region='content-message-container']" "xpath_element"
And I press "Send message"
And I should see "Hi!" in the "//*[@data-region='message-drawer']//div[@data-region='content-message-container']" "xpath_element"
And I should see "Advanced search"
And I set the field "Is tagged with" to "SearchedTag"
And I click on "[data-value='SearchedTag']" "css_element"
- And I press key "27" in the field "Is tagged with"
+ And I press the escape key
When I press "Search forums"
Then I should see "My subject"
And I should not see "Your subjective"
| Activity name | Test tool activity 1 |
And I click on "Edit title" "link" in the "li#section-1" "css_element"
And I set the field "New name for activity Test tool activity 1" to "Test tool activity renamed"
- And I press key "13" in the field "New name for activity Test tool activity 1"
+ And I press the enter key
And I navigate to "Setup > Gradebook setup" in the course gradebook
Then I should not see "Test tool activity 1"
And I should see "Test tool activity renamed"
And I should see "bar" in the "question 02 name" "table_row"
And I should see "qidnum" in the "question 02 name" "table_row"
And I set the field "Filter by tags..." to "foo"
- And I press key "13" in the field "Filter by tags..."
+ And I press the enter key
And I should see "question 01 name" in the "categoryquestions" "table"
And I should not see "question 02 name" in the "categoryquestions" "table"
And I should see "Total of marks: 10.00"
When I follow "Edit maximum mark"
- And I wait until "li input[name=maxmark]" "css_element" exists
- And I take focus off "li input[name=maxmark]" "css_element"
+ And I press the escape key
Then I should see "7.00"
And I should see "3.00"
And I should see "Total of marks: 10.00"
And I should see "Total of marks: 10.00"
When I follow "Edit maximum mark"
- And I wait until "li input[name=maxmark]" "css_element" exists
- And I take focus off "li input[name=maxmark]" "css_element"
+ And I press the escape key
Then I should see "7.00"
And I should see "3.00"
And I should see "Total of marks: 10.00"
@javascript
Scenario: The questions can be filtered by tag
When I set the field "Filter by tags..." to "foo"
- And I press key "13" in the field "Filter by tags..."
+ And I press the enter key
Then I should see "question 1 name" in the "categoryquestions" "table"
And I should not see "question 2 name" in the "categoryquestions" "table"
Scenario: Go to the competency breakdown report
When I navigate to "Reports > Competency breakdown" in current page administration
And I set the field "Filter competencies by resource or activity" to "PageName1"
- And I press key "13" in the field "Filter competencies by resource or activity"
+ And I press the enter key
Then I should see "Test-Comp1"
And I should not see "Test-Comp2"
And I click on "Not rated" "link"
And I click on "Rate" "button" in the ".competency-grader" "css_element"
And I click on "Close" "button"
And I set the field "Filter competencies by resource or activity" to "No filters applied"
- And I press key "13" in the field "Filter competencies by resource or activity"
+ And I press the enter key
And I should see "Test-Comp1"
And I should see "Test-Comp2"
Scenario: Editing tag collections
When I click on "Edit tag collection name" "link" in the "//table[contains(@class,'tag-collections-table')]//tr[contains(.,'Hobbies')]" "xpath_element"
And I set the field "New name for tag collection Hobbies" to "Newname"
- And I press key "13" in the field "New name for tag collection Hobbies"
+ And I press the enter key
Then I should not see "Hobbies"
And I should see "Newname"
And I log out
And I should see "Dog" in the ".tag_list" "css_element"
And I should see "Turtle" in the ".tag_list" "css_element"
And I should see "Fish" in the ".tag_list" "css_element"
- And I log out
@javascript
Scenario: Manager can change tag description, related tags and rename the tag from tag view page
And I should see "Turtle" in the ".tag_list" "css_element"
And I should see "Fish" in the ".tag_list" "css_element"
And I should not see "Dog"
- And I log out
Scenario: Renaming the tag from tag view page
When I log in as "manager1"
| Tag name | KITTEN |
And I press "Update"
And "KITTEN" "text" should exist in the ".breadcrumb" "css_element"
- And I log out
@javascript
Scenario: Manager can change tag description and rename the tag from tag manage page
And I should see "Dog" in the ".tag_list" "css_element"
And I should see "Turtle" in the ".tag_list" "css_element"
And I should see "Fish" in the ".tag_list" "css_element"
- And I log out
Scenario: Renaming the tag in edit tag form from tag manage page
When I log in as "manager1"
And "Default collection" "text" should exist in the ".breadcrumb" "css_element"
And I should see "KITTEN"
And I should not see "Kitten"
- And I log out
@javascript
Scenario: Renaming the tag using quick edit field on tag manage page
# Renaming tag to a valid name
And I click on "Edit tag name" "link" in the "Cat" "table_row"
And I set the field "New name for tag Cat" to "Kitten"
- And I press key "13" in the field "New name for tag Cat"
+ And I press the enter key
Then I should not see "Cat"
And "New name for tag" "field" should not exist
And I wait until "Kitten" "link" exists
# Renaming tag to an invalid name
And I click on "Edit tag name" "link" in the "Turtle" "table_row"
And I set the field "New name for tag Turtle" to "DOG"
- And I press key "13" in the field "New name for tag Turtle"
+ And I press the enter key
And I should see "The tag name is already in use. Do you want to combine these tags?"
And I click on "Cancel" "button" in the "Confirm" "dialogue"
And "New name for tag" "field" should not exist
# Cancel tag renaming
And I click on "Edit tag name" "link" in the "Dog" "table_row"
And I set the field "New name for tag Dog" to "Penguin"
- And I press key "27" in the field "New name for tag Dog"
+ And I press the escape key
And "New name for tag" "field" should not exist
And I should see "Turtle"
And I should not see "Penguin"
And I follow "Default collection"
And I should see "Turtle"
And I should not see "Penguin"
- And I log out
@javascript
Scenario: Combining tags when renaming
And I follow "Default collection"
And I click on "Edit tag name" "link" in the "Turtle" "table_row"
And I set the field "New name for tag Turtle" to "DOG"
- And I press key "13" in the field "New name for tag Turtle"
+ And I press the enter key
And I should see "The tag name is already in use. Do you want to combine these tags?"
And I press "Yes"
Then I should not see "Turtle"
And I should not see "DOG"
And I should see "Dog"
- And I log out
@javascript
Scenario: Combining multiple tags
And I should see "Turtle"
# Even though Turtle was not standard but at least one of combined tags was (Neverusedtag). Now Turtle is also standard.
And "Remove from standard tags" "link" should exist in the "Turtle" "table_row"
- And I log out
Scenario: Filtering tags
When I log in as "manager1"
And I should see "Dog"
And I should see "Cat"
And I should see "Turtle"
- And I log out
And I click on "Student 1's role assignments" "link"
And I click on ".form-autocomplete-downarrow" "css_element" in the "student1" "table_row"
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"
+ And I press the escape key
When I click on "Save changes" "link"
Then I should see "Student, Non-editing teacher" in the "Student 1" "table_row"
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"
+ And I press the escape key
When I click on "Save changes" "link"
Then I should see "No roles" in the "Student 1" "table_row"
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"
+ And I press the escape key
And I click on "Save changes" "link"
And I set the field "type" in the "Filter 1" "fieldset" to "Roles"
And I click on ".form-autocomplete-downarrow" "css_element" in the "Filter 1" "fieldset"
And I set the field "Match" in the "Filter 3" "fieldset" to "Any"
And I set the field "type" in the "Filter 3" "fieldset" to "Keyword"
And I set the field "Type..." to "teacher1"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 2" in the "participants" "table"
And I should see "Student 4" in the "participants" "table"
And I set the field "Match" in the "Filter 3" "fieldset" to "Any"
And I set the field "type" in the "Filter 3" "fieldset" to "Keyword"
And I set the field "Type..." to "3@"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 1" in the "participants" "table"
And I should not see "Student 2" in the "participants" "table"
And I set the field "Match" in the "Filter 1" "fieldset" to "Any"
And I set the field "type" in the "Filter 1" "fieldset" to "Keyword"
And I set the field "Type..." to "1@example"
- And I press key "13" in the field "Type..."
+ And I press the enter key
When I click on "Apply filters" "button"
Then I should see "Student 1" in the "participants" "table"
And I should see "Teacher 1" in the "participants" "table"
And I should not see "Teacher 1" in the "participants" "table"
# Add a second keyword filter value
And I set the field "Type..." to "moodle"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 2" in the "participants" "table"
And I should see "Student 3" in the "participants" "table"
And I set the field "type" in the "Filter 1" "fieldset" to "Keyword"
# Search by email (only).
And I set the field "Type..." to "student1@example.com"
- And I press key "13" in the field "Type..."
+ And I press the enter key
When I click on "Apply filters" "button"
Then I should see "Student 1" in the "participants" "table"
And I should not see "Student 2" in the "participants" "table"
# Search by idnumber (only).
And I click on "student1@example.com" "autocomplete_selection"
And I set the field "Type..." to "SID"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 1" in the "participants" "table"
And I should see "Student 2" in the "participants" "table"
# Search by city (only).
And I click on "SID" "autocomplete_selection"
And I set the field "Type..." to "SCITY"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 1" in the "participants" "table"
And I should see "Student 2" in the "participants" "table"
# Search by country text (only) - should not match.
And I click on "SCITY" "autocomplete_selection"
And I set the field "Type..." to "GB"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Nothing to display"
# Check no match.
And I click on "GB" "autocomplete_selection"
And I set the field "Type..." to "NOTHING"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Nothing to display"
# Search by email (only) - should only see visible email + own.
And I set the field "type" in the "Filter 1" "fieldset" to "Keyword"
And I set the field "Type..." to "@example."
- And I press key "13" in the field "Type..."
+ And I press the enter key
When I click on "Apply filters" "button"
Then I should not see "Student 1" in the "participants" "table"
And I should see "Student 2" in the "participants" "table"
# Search for other fields - should only see own results.
And I click on "@example." "autocomplete_selection"
And I set the field "Type..." to "SID"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Nothing to display"
And I click on "SID" "autocomplete_selection"
And I set the field "Type..." to "TID"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Teacher 1" in the "participants" "table"
And I should not see "Student 1" in the "participants" "table"
And I click on "TID" "autocomplete_selection"
And I set the field "Type..." to "CITY"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Teacher 1" in the "participants" "table"
And I should not see "Student 1" in the "participants" "table"
# Check no match.
And I click on "CITY" "autocomplete_selection"
And I set the field "Type..." to "NOTHING"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Nothing to display"
And I set the field "Match" in the "Filter 2" "fieldset" to "Any"
And I set the field "type" in the "Filter 2" "fieldset" to "Keyword"
And I set the field "Type..." to "@example"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 1" in the "participants" "table"
And I should see "Student 2" in the "participants" "table"
And I set the field "Match" in the "Filter 2" "fieldset" to "Any"
And I set the field "type" in the "Filter 2" "fieldset" to "Keyword"
And I set the field "Type..." to "@example"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Apply filters" "button"
And I should see "Student 1" in the "participants" "table"
And I should see "Student 2" in the "participants" "table"
And I set the field "Match" in the "Filter 1" "fieldset" to "Any"
And I set the field "type" in the "Filter 1" "fieldset" to "Keyword"
And I set the field "Type..." to "@example.com"
- And I press key "13" in the field "Type..."
+ And I press the enter key
And I click on "Add condition" "button"
# Set filterset to match none.
And I set the field "Match" to "None"