[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/course/tests/behat/ -> section_highlighting.feature (source)

   1  @core @core_course @_cross_browser
   2  Feature: Topic's course sections highlighting
   3    In order to highlight parts of the course to students
   4    As a teacher
   5    I need to highlight one specific section
   6  
   7    @javascript
   8    Scenario Outline: Highlight a topic's course section with course paged mode and without it
   9      Given the following "users" exist:
  10        | username | firstname | lastname | email |
  11        | teacher1 | Teacher | 1 | teacher1@example.com |
  12        | student1 | Student | 1 | student1@example.com |
  13      And the following "courses" exist:
  14        | fullname | shortname | format | coursedisplay |
  15        | Course 1 | C1 | topics | <coursedisplay> |
  16      And the following "course enrolments" exist:
  17        | user | course | role |
  18        | teacher1 | C1 | editingteacher |
  19        | student1 | C1 | student |
  20      And I log in as "teacher1"
  21      And I follow "Course 1"
  22      And I turn editing mode on
  23      When I turn section "1" highlighting on
  24      Then section "1" should be highlighted
  25      And I turn section "2" highlighting on
  26      And section "2" should be highlighted
  27      And section "1" should not be highlighted
  28      And I am on homepage
  29      And I follow "Course 1"
  30      And section "2" should be highlighted
  31      And section "1" should not be highlighted
  32      And I turn section "2" highlighting off
  33      And section "2" should not be highlighted
  34      And I reload the page
  35      And section "2" should not be highlighted
  36      And I am on homepage
  37      And I follow "Course 1"
  38      And section "2" should not be highlighted
  39      And I log out
  40      And I log in as "student1"
  41      And I follow "Course 1"
  42      And section "1" should not be highlighted
  43      And section "2" should not be highlighted
  44  
  45      Examples:
  46        | coursedisplay |
  47        | 0            |
  48        | 1            |


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