From 360c7917f66b8123b355b4254fa51bddbcffc8f6 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Wed, 2 Dec 2015 05:36:15 +0000 Subject: [PATCH] MDL-48451 report_outline: additional behat coverage --- report/outline/tests/behat/outline.feature | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/report/outline/tests/behat/outline.feature b/report/outline/tests/behat/outline.feature index 1362d1f40a0..8f8c5104213 100644 --- a/report/outline/tests/behat/outline.feature +++ b/report/outline/tests/behat/outline.feature @@ -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"