From 33308e057106ca2ae9336a9b9e4d74768916c8b1 Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Wed, 27 May 2015 12:32:31 -0400 Subject: [PATCH] Updated tests to verify placeholder text in use html 5 to require waypoint and closes #643 --- 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 6290601fa6..43032e2239 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1325,8 +1325,8 @@ "For example, if you wanted to make a text input field required, you can just add the word \"required\" within your input element use: <input type='text' required>" ], "tests": [ - "assert($('input').prop('required'), 'Your text field have the property of being required.')", - "assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"cat photo URL\".')" + "assert($('input').prop('required'), 'Your text field should have the property of being required.')", + "assert(new RegExp('cat photo URL').test($('input').prop('placeholder')), 'Your text field should have the placeholder text of \"cat photo URL\".')" ], "challengeSeed": [ "",