From 5c46c552d65f988f5509afb32c3f7117f13e6ae8 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 26 May 2015 10:33:29 -0700 Subject: [PATCH] fixes #487 --- seed_data/challenges/basic-html5-and-css.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 7eb7c588cb..b30a32ef29 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -474,7 +474,7 @@ ], "tests": [ "assert($('img').length > 0, 'Your webpage should have an image element.')", - "assert(!!$('img').attr('src'), 'Your image should have have a src attribute that points to the kitten image.')" + "assert(!!$('img').filter(function(index) { return /kittens/gi.test($('img').attr('src')); }).length > 0, 'Your image should have have a src attribute that points to the kitten image.')" ], "challengeSeed": [ "", @@ -692,7 +692,7 @@ ], "tests": [ "assert((/photo/gi).test($('a').text()), 'Your anchor element should have the anchor text of \"See my cat photos\"')", - "assert($('a').filter(function(index) { return /photo/gi.test($('a')[index]); }).length === 1, 'You need an anchor element that links to http://catphotoapp.com.')" + "assert($('a').filter(function(index) { return /com/gi.test($('a').attr('href')); }).length > 0, 'You need an anchor element that links to http://catphotoapp.com.')" ], "challengeSeed": [ "", @@ -1595,13 +1595,13 @@ "name": "Waypoint: Check Radio Buttons and Checkboxes by Default", "difficulty" : 0.046, "description": [ - "Set one of your radio buttons and one of your checkboxes to be checked by default.", + "Set the first of your radio buttons and the first of your checkboxes to both be checked by default.", "You set a checkbox or radio button to be checked by default using the checked attribute.", - "Just add the word \"checked\" to the inside of your input element. For example, <input type='radio' name='test-name' checked>." + "To do this, just add the word \"checked\" to the inside of an input element. For example, <input type='radio' name='test-name' checked>." ], "tests": [ - "assert($('input[type=\"radio\"').prop('checked'), 'One of the radio buttons on your form should be checked by default.')", - "assert($('input[type=\"checkbox\"').prop('checked'), 'One of the checkboxes on your form should be checked by default.')" + "assert($('input[type=\"radio\"').prop('checked'), 'Your first radio button on your form should be checked by default.')", + "assert($('input[type=\"checkbox\"').prop('checked'), 'Your first checkbox on your form should be checked by default.')" ], "challengeSeed": [ "",