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/condition/profile/tests/behat/availability_profile.feature

    r136 r1331  
    1111    And the following "users" exist:
    1212      | username | email         |
    13       | teacher1 | t@example.org |
    14       | student1 | s@example.org |
     13      | teacher1 | t@example.com |
     14      | student1 | s@example.com |
    1515    And the following "course enrolments" exist:
    1616      | user     | course | role           |
    1717      | teacher1 | C1     | editingteacher |
    1818      | student1 | C1     | student        |
    19     And I log in as "admin"
    20     And I set the following administration settings values:
    21       | Enable conditional access  | 1 |
    22     And I log out
     19    And the following config values are set as admin:
     20      | enableavailability  | 1 |
    2321
    2422  @javascript
     
    2624    # Basic setup.
    2725    Given I log in as "teacher1"
     26    And I am on site homepage
    2827    And I follow "Course 1"
    2928    And I turn editing mode on
     
    3938    And I click on "User profile" "button"
    4039    And I set the field "User profile field" to "Email address"
    41     And I set the field "Value to compare against" to "s@example.org"
     40    And I set the field "Value to compare against" to "s@example.com"
    4241    And I click on ".availability-item .availability-eye img" "css_element"
    4342    And I click on "Save and return to course" "button"
     
    5352    And I click on "User profile" "button"
    5453    And I set the field "User profile field" to "Email address"
    55     And I set the field "Value to compare against" to "q@example.org"
     54    And I set the field "Value to compare against" to "q@example.com"
    5655    And I click on ".availability-item .availability-eye img" "css_element"
    5756    And I click on "Save and return to course" "button"
     
    6059    When I log out
    6160    And I log in as "student1"
     61    And I am on site homepage
    6262    And I follow "Course 1"
    6363
     
    7979    # Set field value for user.
    8080    And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
    81     And I click on "a[title=Edit]" "css_element" in the "s@example.org" "table_row"
     81    And I click on "a[title=Edit]" "css_element" in the "s@example.com" "table_row"
    8282    And I expand all fieldsets
    8383    And I set the field "Super field" to "Bananaman"
     
    8585
    8686    # Set Page activity which has requirement on this field.
    87     And I am on homepage
     87    And I am on site homepage
    8888    And I follow "Course 1"
    8989    And I turn editing mode on
     
    112112    And I log out
    113113    And I log in as "student1"
     114    And I am on site homepage
    114115    And I follow "Course 1"
    115116    Then I should see "P1" in the "region-main" "region"
Note: See TracChangeset for help on using the changeset viewer.