MDL-48451 report_outline: additional behat coverage

This commit is contained in:
Ryan Wyllie 2015-12-02 05:36:15 +00:00 committed by Eloy Lafuente (stronk7)
parent 6e8e992d37
commit 360c7917f6

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"