AutorÃa | Ultima modificación | Ver Log |
@report @report_logliveFeature: In a report, admin can see loglive dataIn order see loglive dataAs an adminI need to view loglive report and see if the live update feature worksBackground:Given the following "courses" exist:| fullname | shortname | category | groupmode || Course 1 | C1 | 0 | 1 |And the following "users" exist:| username | firstname | lastname | email | idnumber | middlename | alternatename | firstnamephonetic | lastnamephonetic || student1 | Grainne | Beauchamp | student1@example.com | s1 | Ann | Jill | Gronya | Beecham |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student |And the following config values are set as admin:| fullnamedisplay | firstname || alternativefullnameformat | middlename, alternatename, firstname, lastname |And I log in as "admin"And I add a data activity to course "Course 1" section "3" and I fill the form with:| Name | Test name || Description | Test database description |@javascriptScenario: Check loglive report entries and make sure the report works for standard readerGiven I navigate to "Reports > Live logs" in site administrationWhen I should see "Course module created"Then I should see "Test name"@javascript @_switch_windowScenario: Check loglive report entries and make sure the pause/resume button works for standard reader along with ajax callsGiven I am on site homepageWhen I navigate to "Reports > Live logs" in site administrationAnd I should not see "Test name2"And I press "Pause live updates"And I follow "Course module created"And I switch to "action" windowAnd I am on "Course 1" course homepageAnd I change window size to "large"And I reload the pageAnd I add a data activity to course "Course 1" section "3" and I fill the form with:| Name | Test name2 || Description | Test database description |And I switch to the main windowAnd I wait "8" secondsThen I should not see "Test name2"And I press "Resume live updates"And I wait "8" secondsAnd I should see "Test name2"@javascriptScenario: Check course loglive report entries for a userGiven I log outAnd I am on the "Test name" "data activity" page logged in as student1And I log outAnd I am on the "Course 1" Course page logged in as adminWhen I navigate to "Reports > Live logs" in site administrationThen I should see "Course module viewed"And I should see "Test name"And I should see "Ann, Jill, Grainne, Beauchamp"