[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/report/eventlist/tests/behat/ -> mainsection.feature (source)

   1  @report @report_eventlist
   2  Feature: Page contains a list of events
   3    In order to find information about events
   4    As a user
   5    I need to check the page contents
   6  
   7    @javascript
   8    Scenario: Event list page is viewable and filtering works
   9      Given I log in as "admin"
  10      And I navigate to "Events list" node in "Site administration > Reports"
  11      And I should see "Event name"
  12      And I set the field "eventname" to "phase"
  13      And I should see "Phase switched"
  14      And I should not see "Comment created"
  15      And I press "clearbutton"
  16      And I set the field "eventcomponent" to "URL"
  17      And I press "filterbutton"
  18      And I should see "Course module instance list viewed"
  19      And I should not see "User added to cohort"
  20      And I press "clearbutton"
  21      And I set the field "eventedulevel" to "Teaching"
  22      And I press "filterbutton"
  23      And I should see "Attempt deleted"
  24      And I should not see "Quiz attempt abandoned"
  25      And I press "clearbutton"
  26      And I set the field "eventcrud" to "delete"
  27      And I press "filterbutton"
  28      And I should see "Cohort deleted"
  29      And I should not see "Cohort updated"
  30      And I press "clearbutton"
  31      And I set the field "eventcomponent" to "Assignment"
  32      And I set the field "eventedulevel" to "Participating"
  33      And I press "filterbutton"
  34      And I should see "A submission has been submitted"
  35      And I should not see "An extension has been granted"
  36      And I press "clearbutton"
  37      And I set the field "eventedulevel" to "Other"
  38      And I set the field "eventcrud" to "read"
  39      And I press "filterbutton"
  40      And I should see "Notes viewed"
  41      And I should not see "Highscores viewed"
  42      And I press "clearbutton"
  43      And I set the field "eventname" to "viewed"
  44      And I set the field "eventcomponent" to "Forum"
  45      And I set the field "eventedulevel" to "Participating"
  46      And I set the field "eventcrud" to "read"
  47      And I press "filterbutton"
  48      Then I should see "User report viewed"
  49      And I should not see "Subscribers viewed"
  50  
  51    @javascript
  52    Scenario: Details of an event are viewable
  53      Given I log in as "admin"
  54      And I navigate to "Events list" node in "Site administration > Reports"
  55      And I should see "Event name"
  56      And I follow "Blog association created"
  57      And I should see "Blog association created"
  58      And I should see "blog_association"
  59      And I should see "create"
  60      And I should see "Log store manager (tool_log)"
  61      And I follow "\core\event\base"
  62      Then I should see "core: base"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1