Skip to content

Commit b7792a6

Browse files
committed
Add Behat test for new element (#499)
1 parent 5637a63 commit b7792a6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/behat/managing_elements.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,30 @@ Feature: Being able to manage elements in a certificate template
139139
| Width | 20 |
140140
| Reference point location | Top left |
141141
And I press "Save changes"
142+
# Expiry.
143+
And I add the element "Expiry" to page "1" of the "Custom certificate 1" certificate template
144+
And I set the following fields to these values:
145+
| Date item | Expiry date (1 year) |
146+
| Date format | 2 |
147+
| Start date | award |
148+
| Font | Helvetica |
149+
| Size | 20 |
150+
| Colour | #045ECD |
151+
| Width | 20 |
152+
| Reference point location | Top left |
153+
And I press "Save changes"
154+
And I should see "Expiry" in the "elementstable" "table"
155+
And I click on ".edit-icon" "css_element" in the "Expiry" "table_row"
156+
And the following fields match these values:
157+
| Date item | Expiry date (1 year) |
158+
| Date format | 2 |
159+
| Start date | award |
160+
| Font | Helvetica |
161+
| Size | 20 |
162+
| Colour | #045ECD |
163+
| Width | 20 |
164+
| Reference point location | Top left |
165+
And I press "Save changes"
142166
# Date range.
143167
And I add the element "Date range" to page "1" of the "Custom certificate 1" certificate template
144168
And I set the following fields to these values:

0 commit comments

Comments
 (0)