Added extra Behat steps for new elements (#309)
This commit is contained in:
parent
a0bc5ffa04
commit
db10a589f1
1 changed files with 66 additions and 0 deletions
|
@ -79,6 +79,24 @@ Feature: Being able to manage elements in a certificate template
|
||||||
| Width | 20 |
|
| Width | 20 |
|
||||||
| Reference point location | Top left |
|
| Reference point location | Top left |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
|
# Course field.
|
||||||
|
And I add the element "Course field" to page "1" of the "Custom certificate 1" 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 should see "Course field" in the "elementstable" "table"
|
||||||
|
And I click on ".edit-icon" "css_element" in the "Course field" "table_row"
|
||||||
|
And the following fields match these values:
|
||||||
|
| Font | Helvetica |
|
||||||
|
| Size | 20 |
|
||||||
|
| Colour | #045ECD |
|
||||||
|
| Width | 20 |
|
||||||
|
| Reference point location | Top left |
|
||||||
|
And I press "Save changes"
|
||||||
# Course name.
|
# Course name.
|
||||||
And I add the element "Course name" to page "1" of the "Custom certificate 1" certificate template
|
And I add the element "Course name" to page "1" of the "Custom certificate 1" certificate template
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
|
@ -119,6 +137,42 @@ Feature: Being able to manage elements in a certificate template
|
||||||
| Width | 20 |
|
| Width | 20 |
|
||||||
| Reference point location | Top left |
|
| Reference point location | Top left |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
|
# Date range.
|
||||||
|
And I add the element "Date range" to page "1" of the "Custom certificate 1" certificate template
|
||||||
|
And I set the following fields to these values:
|
||||||
|
| Date item | Course start date |
|
||||||
|
| Font | Helvetica |
|
||||||
|
| Size | 20 |
|
||||||
|
| Colour | #045ECD |
|
||||||
|
| Width | 20 |
|
||||||
|
| Reference point location | Top left |
|
||||||
|
| Fallback string | {{range_first_year}} |
|
||||||
|
| id_startdate_0_day | 24 |
|
||||||
|
| id_startdate_0_month | October |
|
||||||
|
| id_startdate_0_year | 2015 |
|
||||||
|
| id_enddate_0_day | 21 |
|
||||||
|
| id_enddate_0_month | March |
|
||||||
|
| id_enddate_0_year | 2016 |
|
||||||
|
| String | Oct to March |
|
||||||
|
And I press "Save changes"
|
||||||
|
And I should see "Date range" in the "elementstable" "table"
|
||||||
|
And I click on ".edit-icon" "css_element" in the "Date range" "table_row"
|
||||||
|
And the following fields match these values:
|
||||||
|
| Date item | Course start date |
|
||||||
|
| Font | Helvetica |
|
||||||
|
| Size | 20 |
|
||||||
|
| Colour | #045ECD |
|
||||||
|
| Width | 20 |
|
||||||
|
| Reference point location | Top left |
|
||||||
|
| Fallback string | {{range_first_year}} |
|
||||||
|
| id_startdate_0_day | 24 |
|
||||||
|
| id_startdate_0_month | October |
|
||||||
|
| id_startdate_0_year | 2015 |
|
||||||
|
| id_enddate_0_day | 21 |
|
||||||
|
| id_enddate_0_month | March |
|
||||||
|
| id_enddate_0_year | 2016 |
|
||||||
|
| String | Oct to March |
|
||||||
|
And I press "Save changes"
|
||||||
# Digital signature.
|
# Digital signature.
|
||||||
And I add the element "Digital signature" to page "1" of the "Custom certificate 1" certificate template
|
And I add the element "Digital signature" to page "1" of the "Custom certificate 1" certificate template
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
|
@ -287,6 +341,18 @@ Feature: Being able to manage elements in a certificate template
|
||||||
| Width | 10 |
|
| Width | 10 |
|
||||||
| Height | 10 |
|
| Height | 10 |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
|
# QR Code.
|
||||||
|
And I add the element "QR code" to page "1" of the "Custom certificate 1" certificate template
|
||||||
|
And I set the following fields to these values:
|
||||||
|
| Width | 25 |
|
||||||
|
| Height | 15 |
|
||||||
|
And I press "Save changes"
|
||||||
|
And I should see "QR code" in the "elementstable" "table"
|
||||||
|
And I click on ".edit-icon" "css_element" in the "QR code" "table_row"
|
||||||
|
And the following fields match these values:
|
||||||
|
| Width | 25 |
|
||||||
|
| Height | 15 |
|
||||||
|
And I press "Save changes"
|
||||||
# Just to test there are no exceptions being thrown.
|
# Just to test there are no exceptions being thrown.
|
||||||
And I follow "Reposition elements"
|
And I follow "Reposition elements"
|
||||||
And I press "Save and close"
|
And I press "Save and close"
|
||||||
|
|
Loading…
Reference in a new issue