[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/label/tests/behat/ -> label_visibility.feature (source)

   1  @mod @mod_label
   2  Feature: Check label visibility works
   3    In order to check label visibility works
   4    As a teacher
   5    I should create label activity
   6  
   7    @javascript
   8    Scenario: Hidden label activity should be show as hidden.
   9      Given the following "courses" exist:
  10        | fullname | shortname | category |
  11        | Test | C1 | 0 |
  12      And the following "course enrolments" exist:
  13        | user | course | role |
  14        | admin | C1 | editingteacher |
  15      Given I log in as "admin"
  16      And I follow "Test"
  17      And I turn editing mode on
  18      When I add a "label" to section "1" and I fill the form with:
  19        | Label text | Swanky label |
  20        | Visible | Hide |
  21      Then "Swanky label" activity should be hidden
  22  
  23    @javascript
  24    Scenario: Visible label activity should be shown as visible.
  25      Given the following "courses" exist:
  26        | fullname | shortname | category |
  27        | Test | C1 | 0 |
  28      And the following "course enrolments" exist:
  29        | user | course | role |
  30        | admin | C1 | editingteacher |
  31      Given I log in as "admin"
  32      And I follow "Test"
  33      And I turn editing mode on
  34      When I add a "label" to section "1" and I fill the form with:
  35        | Label text | Swanky label |
  36        | Visible | Show |
  37      Then "Swanky label" activity should be visible


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