Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/availability/tests/behat/display_availability.feature

    r136 r1331  
    3535      | teacher1 | C1     | editingteacher |
    3636      | student1 | C1     | student        |
    37     And I log in as "admin"
    38     And I set the following administration settings values:
    39       | Enable conditional access | 1 |
    40     And I log out
     37    And the following config values are set as admin:
     38      | enableavailability | 1 |
    4139
    4240  @javascript
     
    4442    # Set up.
    4543    Given I log in as "teacher1"
     44    And I am on site homepage
    4645    And I follow "Course 1"
    4746    And I turn editing mode on
     
    7776    And I click on "User profile" "button" in the "Add restriction..." "dialogue"
    7877    And I set the field "User profile field" to "Email address"
    79     And I set the field "Value to compare against" to "email@example.org"
     78    And I set the field "Value to compare against" to "email@example.com"
    8079    And I set the field "Method of comparison" to "is equal to"
    8180    And I press "Save and return to course"
     
    106105    Given I log out
    107106    And I log in as "student1"
     107    And I am on site homepage
    108108    And I follow "Course 1"
    109109
    110110    # Page 1 display still there but should be dimmed and not a link.
    111111    Then I should see "Page 1" in the "#section-1 .dimmed_text" "css_element"
    112     And ".activityinstance a" "css_element" should not exist in the "#section-1" "css_element"
     112    And ".activityinstance a" "css_element" should not exist in the "Topic 1" "section"
    113113
    114114    # Date display should be present.
    115     And I should see "Available until" in the "#section-1" "css_element"
     115    And I should see "Available until" in the "Topic 1" "section"
    116116
    117117    # Page 2 display not there at all
     
    120120    # Page 3 display and link
    121121    And I should see "Page 3" in the "region-main" "region"
    122     And ".activityinstance a" "css_element" should exist in the "#section-3" "css_element"
     122    And ".activityinstance a" "css_element" should exist in the "Topic 3" "section"
    123123
    124124  @javascript
     
    126126    # Set up.
    127127    Given I log in as "teacher1"
     128    And I am on site homepage
    128129    And I follow "Course 1"
    129130    And I turn editing mode on
     
    149150
    150151    # This is necessary because otherwise it fails in Chrome, see MDL-44959
    151     And I am on homepage
     152    And I am on site homepage
    152153    And I follow "Course 1"
    153154
     
    174175    Given I log out
    175176    And I log in as "student1"
     177    And I am on site homepage
    176178    And I follow "Course 1"
    177179
Note: See TracChangeset for help on using the changeset viewer.