diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index c8f0108368..2816f572bb 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1044,10 +1044,10 @@ "tests": [ "assert($('a').attr('href').match(/catphotoapp.com/gi).length > 0, 'You need an a element that links to \"catphotoapp.com\".')", "assert($('a').text().match(/cat\\sphotos/gi).length > 0, 'Your a element should have the anchor text of \"cat photos\"')", - "assert($('a[href=\\'http://www.catphotoapp.com\\']').parent().is('p'), 'Your anchor element should be wrapped within a paragraph element.')", + "assert($('a[href=\\'http://www.catphotoapp.com\\']').parent().is('p'), 'Your a element should be wrapped within a paragraph element.')", "assert($('p').text().match(/click\\shere\\sfor/gi), 'Your p element should have the text \"click here for\".')", - "assert(editor.match(/<\\/p>/g) && editor.match(/<\\/p>/g).length === editor.match(/

/g).length, 'Make sure your p element has a closing tag.')", - "assert(editor.match(/<\\/a>/g) && editor.match(/<\\/a>/g).length === editor.match(//g).length, 'Make sure your a element has a closing tag.')" + "assert(editor.match(/<\\/p>/g) && editor.match(/

/g).length === editor.match(/

p elements has a closing tag.')", + "assert(editor.match(/<\\/a>/g) && editor.match(//g).length === editor.match(/a elements has a closing tag.')" ], "challengeSeed": [ "", @@ -1174,7 +1174,7 @@ "tests": [ "assert(new RegExp('#').test($('a').children('img').parent().attr('href')), 'Your a element should be a dead link with a href attribute set to \"#\".')", "assert($('a').children('img').length > 0, 'Wrap your image element within an a element.')", - "assert(editor.match(/<\\/a>/g) && editor.match(/<\\/a>/g).length === editor.match(//g).length, 'Make sure each of your a elements has a closing tag.')" + "assert(editor.match(/<\\/a>/g) && editor.match(//g).length === editor.match(/a elements has a closing tag.')" ], "challengeSeed": [ "", @@ -1501,13 +1501,13 @@ "name": "Waypoint: Add Placeholder Text to a Text Field", "difficulty": 0.039, "description": [ - "Add the placeholder text \"cat photo URL\" to your text input.", - "Your placeholder text is what appears in your text input before your user has inputed anything.", + "Set the placeholder value of your text input to \"cat photo URL\".", + "Your placeholder text is what appears in your text input before your user has inputed anything.", "You can create placeholder text like so: <input type='text' placeholder='this is placeholder text'>." ], "tests": [ - "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\".')" + "assert($('input[placeholder]').length > 0, 'Add a placeholder attribute text input element.')", + "assert($('input').attr('placeholder').match(/cat\\s+photo\\s+URL/gi), 'Set the value of your placeholder attribute to \"cat photo URL\".')" ], "challengeSeed": [ "",