1 |
efrain |
1 |
@core @core_course
|
|
|
2 |
Feature: Search recommended activities
|
|
|
3 |
As an admin I am able to search for activities in the "Recommended activities" admin setting page
|
|
|
4 |
|
|
|
5 |
Scenario: Search results are returned if the search query matches any activity names
|
|
|
6 |
Given I log in as "admin"
|
|
|
7 |
And I am on site homepage
|
|
|
8 |
And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
9 |
When I set the field "search" to "assign"
|
|
|
10 |
And I click on "Submit search" "button"
|
|
|
11 |
Then I should see "Search results"
|
|
|
12 |
And "Assignment" "table_row" should exist
|
|
|
13 |
And "Book" "table_row" should not exist
|
|
|
14 |
|
|
|
15 |
Scenario: Search results are not returned if the search query does not match with any activity names
|
|
|
16 |
Given I log in as "admin"
|
|
|
17 |
And I am on site homepage
|
|
|
18 |
And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
19 |
When I set the field "search" to "random query"
|
|
|
20 |
And I click on "Submit search" "button"
|
|
|
21 |
Then I should see "Search results: 0"
|