[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/report/loglive/tests/behat/ -> loglive_report.feature (source)

   1  @report @report_loglive
   2  Feature: In a report, admin can see loglive data
   3    In order see loglive data
   4    As an admin
   5    I need to view loglive report and see if the live update feature works
   6  
   7    Background:
   8      Given the following "courses" exist:
   9        | fullname | shortname | category | groupmode |
  10        | Course 1 | C1        | 0        | 1         |
  11      And I log in as "admin"
  12      And I navigate to "Manage log stores" node in "Site administration > Plugins > Logging"
  13      And I click on "Enable" "link" in the "Legacy log" "table_row"
  14      And the following config values are set as admin:
  15        | loglegacy | 1 | logstore_legacy |
  16      And I am on site homepage
  17      And I follow "Course 1"
  18      And I turn editing mode on
  19      And I add a "Database" to section "3" and I fill the form with:
  20        | Name | Test name |
  21        | Description | Test database description |
  22  
  23    @javascript
  24    Scenario: Check loglive report entries and make sure the report works for standard and legacy reader
  25      Given I navigate to "Live logs" node in "Site administration > Reports"
  26      When I set the field "reader" to "Standard log"
  27      Then I should see "Course module created"
  28      And I should see "Test name"
  29      And I set the field "reader" to "Legacy log"
  30      And I wait to be redirected
  31      And I should see "course_add mod"
  32      And I log out
  33  
  34    @javascript @_switch_window
  35    Scenario: Check loglive report entries and make sure the pause/resume button works for standard reader along with ajax calls
  36      Given I am on site homepage
  37      When I navigate to "Live logs" node in "Site administration > Reports"
  38      And I set the field "reader" to "Standard log"
  39      And I wait to be redirected
  40      And I should not see "Test name2"
  41      And I press "Pause live updates"
  42      And I follow "Course module created"
  43      And I switch to "action" window
  44      And I am on site homepage
  45      And I follow "Course 1"
  46      And I add a "Database" to section "3" and I fill the form with:
  47        | Name | Test name2 |
  48        | Description | Test database description |
  49      And I switch to the main window
  50      And I wait "8" seconds
  51      Then I should not see "Test name2"
  52      And I press "Resume live updates"
  53      And I wait "8" seconds
  54      And I should see "Test name2"
  55      And I log out
  56  
  57    @javascript @_switch_window
  58    Scenario: Check loglive report entries and make sure the pause/resume button works for legacy reader along with ajax calls
  59      Given I am on site homepage
  60      When I navigate to "Live logs" node in "Site administration > Reports"
  61      And I set the field "reader" to "Legacy log"
  62      And I wait to be redirected
  63      And I should not see "Test name2"
  64      And I press "Pause live updates"
  65      And I follow "course_add mod"
  66      And I switch to "action" window
  67      And I am on site homepage
  68      And I follow "Course 1"
  69      And I add a "Database" to section "3" and I fill the form with:
  70        | Name | Test name2 |
  71        | Description | Test database description |
  72      And I switch to the main window
  73      And I wait "8" seconds
  74      Then I should not see "Test name2"
  75      And I press "Resume live updates"
  76      And I wait "8" seconds
  77      And I should see "Test name2"
  78      And I log out
  79  


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