[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/report/log/tests/behat/ -> user_log.feature (source)

   1  @report @report_log
   2  Feature: User can view activity log.
   3    In order to view user log
   4    As an teacher
   5    I need to view user today's and all report
   6  
   7    Background:
   8      Given the following "courses" exist:
   9        | fullname | shortname | category | groupmode |
  10        | Course 1 | C1 | 0 | 1 |
  11      And the following "users" exist:
  12        | username | firstname | lastname | email |
  13        | teacher1 | Teacher | 1 | teacher1@example.com |
  14        | student1 | Student | 1 | student1@example.com |
  15      And the following "course enrolments" exist:
  16        | user | course | role |
  17        | teacher1 | C1 | editingteacher |
  18        | student1 | C1 | student |
  19      And I log in as "teacher1"
  20      And I follow "Course 1"
  21      And I turn editing mode on
  22      And I add a "Assignment" to section "1" and I fill the form with:
  23        | Assignment name | Test assignment name |
  24        | Description | Submit your online text |
  25        | assignsubmission_onlinetext_enabled | 1 |
  26        | assignsubmission_file_enabled | 0 |
  27      And I log out
  28      And I log in as "student1"
  29      And I follow "Course 1"
  30      And I follow "Test assignment name"
  31      When I press "Add submission"
  32      And I set the following fields to these values:
  33        | Online text | I'm the student first submission |
  34      And I press "Save changes"
  35      And I log out
  36  
  37    @javascript
  38    Scenario: View Todays' and all log report for user
  39      Given I log in as "teacher1"
  40      And I follow "Course 1"
  41      And I navigate to "Participants" node in "Current course > C1"
  42      And I follow "Student 1"
  43      When I follow "Today's logs"
  44      And I should see "Assignment: Test assignment name"
  45      And I follow "Student 1"
  46      And I follow "All logs"
  47      Then I should see "Assignment: Test assignment name"
  48  
  49    @javascript
  50    Scenario: No log reader enabled should be visible when no log store enabled.
  51      Given I log in as "admin"
  52      And I navigate to "Manage log stores" node in "Site administration > Plugins > Logging"
  53      And I click on "Disable" "link" in the "Standard log" "table_row"
  54      And I log out
  55      And I log in as "teacher1"
  56      And I follow "Course 1"
  57      And I navigate to "Participants" node in "Current course > C1"
  58      And I follow "Student 1"
  59      When I follow "Today's logs"
  60      And I should see "No log reader enabled"
  61      And I follow "Student 1"
  62      And I follow "All logs"
  63      Then I should see "No log reader enabled"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1