forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-81790 report_log: Log report page per activities
* When clicking on the More / Logs menu in an activity we should stay on the activity page and not go on the course report log
- Loading branch information
1 parent
2b337b4
commit b591100
Showing
5 changed files
with
102 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@report @report_log | ||
Feature: In a activity page, navigate through the More / Logs menu, test for report log page | ||
In order to navigate through report page | ||
As an admin | ||
Go to the activity page, click on More / Logs menu, and check for the report log page | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | category | groupmode | | ||
| Course 1 | C1 | 0 | 1 | | ||
And the following "activities" exist: | ||
| activity | name | course | section | | ||
| page | Test page 1 | C1 | 1 | | ||
| page | Test page 2 | C1 | 1 | | ||
And the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | 1 | student1@example.com | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| admin | C1 | editingteacher | | ||
| student1 | C1 | student | | ||
|
||
Scenario: Report selectors should be targeted toward course module | ||
Given I am on the "Test page 1" Activity page logged in as "admin" | ||
When I navigate to "Logs" in current page administration | ||
And I click on "Logs" "link" | ||
Then "menuid" "select" should not exist | ||
And "modid" "select" should not exist | ||
And I should see "All participants" in the "user" "select" | ||
And I should see "All days" in the "date" "select" | ||
And I should see "All sources" in the "origin" "select" | ||
And I should see "All events" in the "edulevel" "select" | ||
And "Page" "link" should exist in current page administration | ||
|
||
Scenario: Report submission stays in the same course module page | ||
Given I am on the "Test page 1" Activity page logged in as "admin" | ||
When I navigate to "Logs" in current page administration | ||
And I click on "Logs" "link" | ||
And I click on "Get these logs" "button" | ||
Then "Page" "link" should exist in current page administration |