diff --git a/tests/behat/managing_templates.feature b/tests/behat/managing_templates.feature index a01f0d4..5abb9eb 100644 --- a/tests/behat/managing_templates.feature +++ b/tests/behat/managing_templates.feature @@ -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