Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 34... Línea 34...
34
  @javascript
34
  @javascript
35
  Scenario: Student can see the payment prompt on the course enrolment page
35
  Scenario: Student can see the payment prompt on the course enrolment page
36
    When I log in as "student1"
36
    When I log in as "student1"
37
    And I am on course index
37
    And I am on course index
38
    And I follow "Course 1"
38
    And I follow "Course 1"
39
    Then I should see "This course requires a payment for entry."
39
    Then I should see "This course requires a payment for entry"
40
    And I should see "123.45"
40
    And I should see "123.45"
41
    And I press "Select payment type"
41
    And I press "Select payment type"
42
    And I should see "PayPal" in the "Select payment type" "dialogue"
42
    And I should see "PayPal" in the "Select payment type" "dialogue"
43
    And I click on "Cancel" "button" in the "Select payment type" "dialogue"
43
    And I click on "Cancel" "button" in the "Select payment type" "dialogue"
Línea 44... Línea 44...
44
 
44
 
45
  Scenario: Guest can see the login prompt on the course enrolment page
45
  Scenario: Guest can see the login prompt on the course enrolment page
46
    When I log in as "guest"
46
    When I log in as "guest"
47
    And I am on course index
47
    And I am on course index
48
    And I follow "Course 1"
48
    And I follow "Course 1"
49
    Then I should see "This course requires a payment for entry."
49
    Then I should see "This course requires a payment for entry"
50
    And I should see "123.45"
50
    And I should see "123.45"
-
 
51
    And I should see "Log in to the site"
-
 
52
 
-
 
53
  @javascript
-
 
54
  Scenario: Setting a custom instance name for the fee enrolment method
-
 
55
    And I log in as "manager1"
-
 
56
    And I am on the "Course 1" "enrolment methods" page
-
 
57
    And I click on "Edit" "link" in the "Enrolment on payment" "table_row"
-
 
58
    And I set the following fields to these values:
-
 
59
      | Custom instance name | Lifetime access |
-
 
60
      | Instance description | Only for teachers  |
-
 
61
    And I press "Save changes"
-
 
62
    And I should see "Lifetime access"
-
 
63
    And I should see "Only for teachers"
-
 
64
    And I should not see "Enrolment on payment" in the "Lifetime access" "table_row"
-
 
65
    And I log out
-
 
66
    When I log in as "student1"
-
 
67
    And I am on course index
-
 
68
    And I follow "Course 1"
-
 
69
    Then I should not see "This course requires a payment for entry"
-
 
70
    Then I should see "Lifetime access"