Merge branch 'MDL-48451-behat-tests' of github.com:ryanwyllie/moodle

This commit is contained in:
Dan Poltawski 2015-12-02 09:36:29 +00:00 committed by Eloy Lafuente (stronk7)
commit ed0c32da08

View File

@ -122,3 +122,37 @@ Feature: View an outline report
And I navigate to "Activity report" node in "Course administration > Reports"
Then I should see "3 by 1 users" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"
Scenario: Multiple views from multiple users are identified as not distinct
Given I log out
And I log in as "student1"
And I follow "Course 1"
And I follow "Forum name"
And I follow "Course 1"
And I follow "Forum name"
And I follow "Course 1"
And I follow "Forum name"
And I am on site homepage
And I log out
And I log in as "student2"
And I follow "Course 1"
And I follow "Forum name"
And I follow "Course 1"
And I follow "Forum name"
And I follow "Course 1"
And I follow "Forum name"
And I am on site homepage
And I log out
When I log in as "teacher1"
And I follow "Course 1"
And I navigate to "Activity report" node in "Course administration > Reports"
Then I should see "6 by 2 users" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"
Scenario: No views from any users
Given I log out
When I log in as "teacher1"
And I follow "Course 1"
And I navigate to "Activity report" node in "Course administration > Reports"
Then I should see "-" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"