| Línea 1... |
Línea -... |
| 1 |
# This feature has Atto-specific steps. See MDL-75913 for further details.
|
- |
|
| 2 |
@core @core_course @core_customfield @javascript
|
1 |
@core @core_course @core_customfield @javascript
|
| 3 |
Feature: Teachers can edit course custom fields
|
2 |
Feature: Teachers can edit course custom fields
|
| 4 |
In order to have additional data on the course
|
3 |
In order to have additional data on the course
|
| 5 |
As a teacher
|
4 |
As a teacher
|
| 6 |
I need to edit data for custom fields
|
5 |
I need to edit data for custom fields
|
| Línea 23... |
Línea 22... |
| 23 |
| fullname | shortname | format |
|
22 |
| fullname | shortname | format |
|
| 24 |
| Course 1 | C1 | topics |
|
23 |
| Course 1 | C1 | topics |
|
| 25 |
And the following "course enrolments" exist:
|
24 |
And the following "course enrolments" exist:
|
| 26 |
| user | course | role |
|
25 |
| user | course | role |
|
| 27 |
| teacher1 | C1 | editingteacher |
|
26 |
| teacher1 | C1 | editingteacher |
|
| 28 |
And the following "blocks" exist:
|
- |
|
| 29 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
- |
|
| 30 |
| private_files | System | 1 | my-index | side-post |
|
- |
|
| 31 |
And the following "user private files" exist:
|
27 |
And the following "user private files" exist:
|
| 32 |
| user | filepath | filename |
|
28 |
| user | filepath |
|
| 33 |
| admin | lib/tests/fixtures/gd-logo.png | gd-logo.png |
|
29 |
| admin | lib/tests/fixtures/gd-logo.png |
|
| Línea 34... |
Línea 30... |
| 34 |
|
30 |
|
| 35 |
Scenario: Display custom fields on course edit form
|
31 |
Scenario: Display custom fields on course edit form
|
| 36 |
When I log in as "teacher1"
|
32 |
When I log in as "teacher1"
|
| 37 |
And I am on "Course 1" course homepage
|
33 |
And I am on "Course 1" course homepage
|
| Línea 85... |
Línea 81... |
| 85 |
And I click on "Image" "button" in the "Description" "form_row"
|
81 |
And I click on "Image" "button" in the "Description" "form_row"
|
| 86 |
And I click on "Browse repositories" "button"
|
82 |
And I click on "Browse repositories" "button"
|
| 87 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
83 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
| 88 |
And I click on "gd-logo.png" "link"
|
84 |
And I click on "gd-logo.png" "link"
|
| 89 |
And I click on "Select this file" "button"
|
85 |
And I click on "Select this file" "button"
|
| 90 |
And I set the field "How would you describe this image to someone who can't see it:" to "Example"
|
86 |
And I set the field "How would you describe this image to someone who can't see it?" to "Example"
|
| 91 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
87 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
| 92 |
And I click on "Save changes" "button" in the "Updating Field 1" "dialogue"
|
88 |
And I click on "Save changes" "button" in the "Updating Field 1" "dialogue"
|
| 93 |
And I log out
|
89 |
And I log out
|
| 94 |
And I log in as "teacher1"
|
90 |
And I log in as "teacher1"
|
| 95 |
And I am on "Course 1" course homepage
|
91 |
And I am on "Course 1" course homepage
|