Extend Behat test coverage for loading templates
This commit is contained in:
parent
cce88f8122
commit
0b807a2697
1 changed files with 21 additions and 2 deletions
|
@ -30,8 +30,15 @@ Feature: Being able to manage site templates
|
|||
And I add the element "Border" to page "1" of the "Site template" certificate template
|
||||
And I set the following fields to these values:
|
||||
| Width | 5 |
|
||||
| Colour | #045ECD |
|
||||
And I press "Save changes"
|
||||
And I add the element "User picture" to page "1" of the "Site template" certificate template
|
||||
And I add the element "Category name" to page "1" of the "Site template" certificate template
|
||||
And I set the following fields to these values:
|
||||
| Font | Helvetica |
|
||||
| Size | 20 |
|
||||
| Colour | #045ECD |
|
||||
| Width | 20 |
|
||||
| Reference point location | Top left |
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
|
@ -46,7 +53,19 @@ Feature: Being able to manage site templates
|
|||
And I should see "Are you sure you wish to load this template"
|
||||
And I press "Continue"
|
||||
And I should see "Border" in the "elementstable" "table"
|
||||
And I should see "User picture" in the "elementstable" "table"
|
||||
And I should see "Category name" in the "elementstable" "table"
|
||||
And I click on ".edit-icon" "css_element" in the "Border" "table_row"
|
||||
And the following fields match these values:
|
||||
| Width | 5 |
|
||||
| Colour | #045ECD |
|
||||
And I press "Save changes"
|
||||
And I click on ".edit-icon" "css_element" in the "Category name" "table_row"
|
||||
And the following fields match these values:
|
||||
| Font | Helvetica |
|
||||
| Size | 20 |
|
||||
| Colour | #045ECD |
|
||||
| Width | 20 |
|
||||
| Reference point location | Top left |
|
||||
|
||||
Scenario: Deleting a site template
|
||||
And I navigate to "Plugins" in site administration
|
||||
|
|
Loading…
Reference in a new issue