features/form_module.feature in noodall-form-builder-0.0.10 vs features/form_module.feature in noodall-form-builder-0.0.11
- old
+ new
@@ -36,5 +36,19 @@
When a website visitor visits the content
And they submit the form
Then it should be checked against the validation speficied in the form builder
And it should be rejected if the the response does not meet the validation
And the website visitor should see an error message
+
+ Scenario: Custom Thank You Messages
+ Given a form exists with the following:
+ | thank_you_message | Thanks for that |
+ | thank_you_email | Cheers then! |
+ When I view the form on the website
+ And I fill in the following:
+ | Name | Dave |
+ | Email | spoon@buttonmooon.com |
+ And I press "Send"
+ Then I should see "Thanks for that"
+ And "spoon@buttonmooon.com" should receive an email
+ When I open the email
+ Then I should see "Cheers then!" in the email body