From 3fbf84cf21843f04d5d2e5676b098517c60bdcea Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Thu, 28 May 2015 09:08:44 -0400 Subject: [PATCH] Ensures a button has been fully declared, fixes #683 --- seed_data/challenges/basic-html5-and-css.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 80dabd999f..b30e226e12 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1571,12 +1571,12 @@ "name": "Waypoint: Add a Submit Button to a Form", "difficulty": 0.041, "description": [ - "Add a submit button to your form field.", + "Add a submit button to your form field with type submit and a test value of \"Submit\".", "Let's add a submit button to your form. Clicking this button will send the data from your form to the URL you specified with your form's action attribute.", "Here's an example submit button: <button type='submit'>this button submits the form</button>" ], "tests": [ - "assert($('button').length > 0, 'Your form should have a button inside it.')" + "assert(new RegExp('', 'gi').test(editor), 'Make sure you have completely declared your button!');" ], "challengeSeed": [ "",