From 8dda4324f7f189869c142f028034e2883a3d14f3 Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Sat, 30 May 2015 16:59:00 +0200 Subject: [PATCH] Improves 'Add Placeholder Text to a Text Field' and fixes #701 --- 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 7a3a07c47ac..6d4d92624f9 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1430,8 +1430,8 @@ "For example: <input type='text' placeholder='this is placeholder text'>" ], "tests": [ - "assert($('[placeholder]').length > 0, 'Your text field should have a placeholder attribute.')", - "assert(/url/gi.test($('input').attr('placeholder')), 'Your placeholder field should have the value of \"cat photo URL\".')" + "assert($('input[placeholder]').length > 0, 'Your text field should have a placeholder attribute.')", + "assert($('input').attr('placeholder') === 'cat photo URL', 'Your placeholder field should have the value of \"cat photo URL\".')" ], "challengeSeed": [ "",