# Select (multi-select) - Checking "I set the field".
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
- # Checkbox - Checking "I set the field".
- And I set the field "Display description on course page" to "1"
- # Checkbox - Checking "I set the following fields to these values:".
+ # Checkbox - Checking "I set the field" and "The field matches value" ticked.
+ And I set the field "Force format" to "1"
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And I expand all fieldsets
+ And the field "Force format" matches value "1"
+ And the field "Force format" does not match value ""
+ # Checkbox - Checking "I set the field" and "The field matches value" unticked.
+ And I set the field "Force format" to ""
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And I expand all fieldsets
+ And the field "Force format" matches value ""
+ And the field "Force format" does not match value "1"
+ # Checkbox - Checking "I set the following fields to these values:" and "The following fields match these values" ticked.
And I set the following fields to these values:
| Force format | 1 |
- # Checkbox - Checking "the field matches value" and "the field does not match value".
- And the field "Display description on course page" matches value "1"
- And the field "Display description on course page" does not match value ""
And I press "Save and return to course"
And I should see "Test this one"
And I follow "Test this one"
And I navigate to "Edit settings" in current page administration
- # Checkbox - Checking "the field matches value" and "the following fields match these values".
+ And I expand all fieldsets
And the following fields match these values:
- | Display description on course page | 1 |
- | Default format | HTML |
- | Wiki name | Test this one |
- And the field "Force format" matches value "1"
+ | Force format | 1 |
+ And the following fields do not match these values:
+ | Force format | |
+ # Checkbox - Checking "I set the following fields to these values:" and "The following fields match these values" unticked.
+ And I set the following fields to these values:
+ | Force format | |
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And I expand all fieldsets
+ And the following fields match these values:
+ | Force format | |
+ And the following fields do not match these values:
+ | Force format | 1 |
# Select (simple) - Checking "I set the following fields to these values:".
And I set the following fields to these values:
| Default format | NWiki |
- | Display description on course page | |
- # Checkbox - Checking "I set the field" to uncheck.
- And I set the field "Force format" to ""
# Select (simple) - Checking "I set the field".
And I set the field "Group mode" to "Separate groups"
And I press "Save and display"
And the following fields match these values:
| Default format | NWiki |
| Group mode | Separate groups |
- | Display description on course page | |
- | Force format | |
# All fields - Checking "the following fields do not match these values".
And the following fields do not match these values:
| Wiki name | Test this one baby |
| Default format | HTML |
- | Force format | 1 |
And I press "Cancel"
And I am on "Course 1" course homepage
# Radio - Checking "I set the field" and "the field matches value".
And the "available[day]" "field" should be enabled
And the field "deadline[enabled]" matches value "1"
And I press "Cancel"
+ # Advanced checkbox requires real browser to allow uncheck to work. MDL-58681. MDL-55386.
+ # Advanced checkbox - Checking "I set the field" and "The field matches value" ticked.
+ And I am on "Course 1" course homepage
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And I set the field "Display description on course page" to "1"
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And the field "Display description on course page" matches value "1"
+ And the field "Display description on course page" does not match value ""
+ # Advanced checkbox - Checking "I set the field" and "The field matches value" unticked.
+ And I set the field "Display description on course page" to ""
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And the field "Display description on course page" matches value ""
+ And the field "Display description on course page" does not match value "1"
+ # Advanced checkbox - Checking "I set the following fields to these values:" and "The following fields match these values" ticked.
+ And I set the following fields to these values:
+ | Display description on course page | 1 |
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And the following fields match these values:
+ | Display description on course page | 1 |
+ And the following fields do not match these values:
+ | Display description on course page | |
+ # Advanced checkbox - Checking "I set the following fields to these values:" and "The following fields match these values" unticked.
+ And I set the following fields to these values:
+ | Display description on course page | |
+ And I press "Save and return to course"
+ And I should see "Test this one"
+ And I follow "Test this one"
+ And I navigate to "Edit settings" in current page administration
+ And the following fields match these values:
+ | Display description on course page | |
+ And the following fields do not match these values:
+ | Display description on course page | 1 |