Línea 18... |
Línea 18... |
18 |
And I am on "Course 1" course homepage
|
18 |
And I am on "Course 1" course homepage
|
19 |
And I turn editing mode on
|
19 |
And I turn editing mode on
|
Línea 20... |
Línea 20... |
20 |
|
20 |
|
21 |
@javascript
|
21 |
@javascript
|
22 |
Scenario: Teacher can enable comments if they are enabled at site level
|
22 |
Scenario: Teacher can enable comments if they are enabled at site level
|
23 |
Given I press "Add an activity or resource"
|
23 |
Given I open the activity chooser
|
24 |
And I click on "Add a new Database" "link" in the "Add an activity or resource" "dialogue"
|
24 |
And I click on "Add a new Database" "link" in the "Add an activity or resource" "dialogue"
|
25 |
When I expand all fieldsets
|
25 |
When I expand all fieldsets
|
26 |
And "Allow comments on entries" "field" should exist
|
26 |
And "Allow comments on entries" "field" should exist
|
27 |
And I set the field "Name" to "Test Database name"
|
27 |
And I set the field "Name" to "Test Database name"
|
Línea 32... |
Línea 32... |
32 |
@javascript
|
32 |
@javascript
|
33 |
Scenario: Teacher cannot enable comments if they are disabled at site level
|
33 |
Scenario: Teacher cannot enable comments if they are disabled at site level
|
34 |
# Disable comments in site config.
|
34 |
# Disable comments in site config.
|
35 |
Given the following config values are set as admin:
|
35 |
Given the following config values are set as admin:
|
36 |
| usecomments | 0 |
|
36 |
| usecomments | 0 |
|
37 |
And I press "Add an activity or resource"
|
37 |
And I open the activity chooser
|
38 |
And I click on "Add a new Database" "link" in the "Add an activity or resource" "dialogue"
|
38 |
And I click on "Add a new Database" "link" in the "Add an activity or resource" "dialogue"
|
39 |
When I expand all fieldsets
|
39 |
When I expand all fieldsets
|
40 |
And I set the field "Name" to "Test Database name 2"
|
40 |
And I set the field "Name" to "Test Database name 2"
|
41 |
And "Allow comments on entries" "field" should not exist
|
41 |
And "Allow comments on entries" "field" should not exist
|
42 |
Then I should see "No" in the "//*[@id=\"fitem_id_comments\"]/*[@data-fieldtype=\"selectyesno\"]" "xpath_element"
|
42 |
Then I should see "No" in the "//*[@id=\"fitem_id_comments\"]/*[@data-fieldtype=\"selectyesno\"]" "xpath_element"
|