[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_course @_cross_browser
   2  Feature: Indent items on the course page
   3    In order to create a structured view of activities
   4    As a teacher
   5    I need to move activities and resources to left and right
   6  
   7    @javascript
   8    Scenario: Indent course items with Javascript enabled
   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 |
  15        | Course 1 | C1 | weeks |
  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      And I add a "Glossary" to section "1" and I fill the form with:
  24        | Name | Test glossary name |
  25        | Description | Test glossary description |
  26      When I indent right "Test glossary name" activity
  27      Then "#section-1 li.glossary div.mod-indent-1" "css_element" should exist
  28      And I indent right "Test glossary name" activity
  29      And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should exist
  30      And "#section-1 li.glossary div.mod-indent-2" "css_element" should exist
  31      And I reload the page
  32      And "#section-1 li.glossary div.mod-indent-2" "css_element" should exist
  33      And I indent left "Test glossary name" activity
  34      And I indent left "Test glossary name" activity
  35      And "#section-1 li.glossary div.mod-indent-2" "css_element" should not exist
  36      And "#section-1 li.glossary div.mod-indent-1" "css_element" should not exist
  37      And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should not exist


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