Línea 23... |
Línea 23... |
23 |
And I set the field "Allow deletes" to "Yes"
|
23 |
And I set the field "Allow deletes" to "Yes"
|
24 |
And I click on "Preview" "button"
|
24 |
And I click on "Preview" "button"
|
25 |
When I click on "Upload courses" "button"
|
25 |
When I click on "Upload courses" "button"
|
26 |
Then I should see "Course updated"
|
26 |
Then I should see "Course updated"
|
27 |
And I am on the "Course 1" "enrolment methods" page
|
27 |
And I am on the "Course 1" "enrolment methods" page
|
28 |
And "Disable" "icon" should exist in the "Guest access" "table_row"
|
28 |
And "Disable" "link" should exist in the "Guest access" "table_row"
|
Línea 29... |
Línea 29... |
29 |
|
29 |
|
30 |
@javascript
|
30 |
@javascript
|
31 |
Scenario: Creating enrolment method by disabling it
|
31 |
Scenario: Creating enrolment method by disabling it
|
32 |
Given I am on the "Course 1" "enrolment methods" page
|
32 |
Given I am on the "Course 1" "enrolment methods" page
|
Línea 40... |
Línea 40... |
40 |
And I set the field "Allow deletes" to "Yes"
|
40 |
And I set the field "Allow deletes" to "Yes"
|
41 |
And I click on "Preview" "button"
|
41 |
And I click on "Preview" "button"
|
42 |
When I click on "Upload courses" "button"
|
42 |
When I click on "Upload courses" "button"
|
43 |
Then I should see "Course updated"
|
43 |
Then I should see "Course updated"
|
44 |
And I am on the "Course 1" "enrolment methods" page
|
44 |
And I am on the "Course 1" "enrolment methods" page
|
45 |
And "Enable" "icon" should exist in the "Guest access" "table_row"
|
45 |
And "Enable" "link" should exist in the "Guest access" "table_row"
|
Línea 46... |
Línea 46... |
46 |
|
46 |
|
47 |
@javascript
|
47 |
@javascript
|
48 |
Scenario: Enabling enrolment method
|
48 |
Scenario: Enabling enrolment method
|
49 |
Given I navigate to "Courses > Upload courses" in site administration
|
49 |
Given I navigate to "Courses > Upload courses" in site administration
|
Línea 53... |
Línea 53... |
53 |
And I set the field "Allow deletes" to "Yes"
|
53 |
And I set the field "Allow deletes" to "Yes"
|
54 |
And I click on "Preview" "button"
|
54 |
And I click on "Preview" "button"
|
55 |
When I click on "Upload courses" "button"
|
55 |
When I click on "Upload courses" "button"
|
56 |
Then I should see "Course updated"
|
56 |
Then I should see "Course updated"
|
57 |
And I am on the "Course 1" "enrolment methods" page
|
57 |
And I am on the "Course 1" "enrolment methods" page
|
58 |
And "Disable" "icon" should exist in the "Guest access" "table_row"
|
58 |
And "Disable" "link" should exist in the "Guest access" "table_row"
|
Línea 59... |
Línea 59... |
59 |
|
59 |
|
60 |
@javascript
|
60 |
@javascript
|
61 |
Scenario: Disable an enrolment method
|
61 |
Scenario: Disable an enrolment method
|
62 |
Given I am on the "Course 1" "enrolment methods" page
|
62 |
Given I am on the "Course 1" "enrolment methods" page
|
63 |
And I click on "Enable" "link" in the "Guest access" "table_row"
|
63 |
And I click on "Enable" "link" in the "Guest access" "table_row"
|
64 |
And "Disable" "icon" should exist in the "Guest access" "table_row"
|
64 |
And "Disable" "link" should exist in the "Guest access" "table_row"
|
65 |
And I navigate to "Courses > Upload courses" in site administration
|
65 |
And I navigate to "Courses > Upload courses" in site administration
|
66 |
And I upload "admin/tool/uploadcourse/tests/fixtures/enrolment_disable.csv" file to "File" filemanager
|
66 |
And I upload "admin/tool/uploadcourse/tests/fixtures/enrolment_disable.csv" file to "File" filemanager
|
67 |
And I set the field "Upload mode" to "Only update existing courses"
|
67 |
And I set the field "Upload mode" to "Only update existing courses"
|
68 |
And I set the field "Update mode" to "Update with CSV data only"
|
68 |
And I set the field "Update mode" to "Update with CSV data only"
|
69 |
And I set the field "Allow deletes" to "Yes"
|
69 |
And I set the field "Allow deletes" to "Yes"
|
70 |
And I click on "Preview" "button"
|
70 |
And I click on "Preview" "button"
|
71 |
When I click on "Upload courses" "button"
|
71 |
When I click on "Upload courses" "button"
|
72 |
Then I should see "Course updated"
|
72 |
Then I should see "Course updated"
|
73 |
And I am on the "Course 1" "enrolment methods" page
|
73 |
And I am on the "Course 1" "enrolment methods" page
|
Línea 74... |
Línea 74... |
74 |
And "Enable" "icon" should exist in the "Guest access" "table_row"
|
74 |
And "Enable" "link" should exist in the "Guest access" "table_row"
|
75 |
|
75 |
|
76 |
@javascript
|
76 |
@javascript
|
77 |
Scenario: Delete an enrolment method
|
77 |
Scenario: Delete an enrolment method
|