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/enrol/guest/tests/behat/guest_access.feature

    r136 r1331  
    88    Given the following "users" exist:
    99      | username | firstname | lastname | email |
    10       | teacher1 | Teacher | 1 | teacher1@asd.com |
    11       | student1 | Student | 1 | student1@asd.com |
     10      | teacher1 | Teacher | 1 | teacher1@example.com |
     11      | student1 | Student | 1 | student1@example.com |
    1212    And the following "courses" exist:
    1313      | fullname | shortname | format |
     
    2222      | Forum name | Test forum name |
    2323      | Description | Test forum description |
    24     And I click on "Edit settings" "link" in the "Administration" "block"
    2524
    26   @javascript
    2725  Scenario: Allow guest access without password
    28     Given I set the following fields to these values:
     26    Given I navigate to "Enrolment methods" node in "Course administration > Users"
     27    And I click on "Edit" "link" in the "Guest access" "table_row"
     28    And I set the following fields to these values:
    2929      | Allow guest access | Yes |
    3030    And I press "Save changes"
    3131    And I log out
    3232    And I log in as "student1"
     33    And I am on site homepage
    3334    And I follow "Course 1"
    3435    When I follow "Test forum name"
    3536    Then I should not see "Subscribe to this forum"
    3637
    37   @javascript
    3838  Scenario: Allow guest access with password
    39     Given I set the following fields to these values:
     39    Given I navigate to "Enrolment methods" node in "Course administration > Users"
     40    And I click on "Edit" "link" in the "Guest access" "table_row"
     41    And I set the following fields to these values:
    4042      | Allow guest access | Yes |
    4143      | Password | moodle_rules |
     
    4345    And I log out
    4446    And I log in as "student1"
     47    And I am on site homepage
    4548    When I follow "Course 1"
    4649    Then I should see "Guest access"
Note: See TracChangeset for help on using the changeset viewer.