diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field.english.md index 4df1684497..ee5a958a0a 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field.english.md @@ -24,12 +24,13 @@ Set the placeholder value of your text input to "cat p ```yml tests: - text: Add a placeholder attribute to the existing text input element. - testString: assert($("input[placeholder]").length > 0, 'Add a placeholder attribute to the existing text input element.'); + testString: assert($("input[placeholder]").length > 0); - text: Set the value of your placeholder attribute to "cat photo URL". - testString: assert($("input") && $("input").attr("placeholder") && $("input").attr("placeholder").match(/cat\s+photo\s+URL/gi), 'Set the value of your placeholder attribute to "cat photo URL".'); + testString: assert($("input") && $("input").attr("placeholder") && $("input").attr("placeholder").match(/cat\s+photo\s+URL/gi)); + - text: The finished input element should not have a closing tag. + testString: assert(!code.match(/.*<\/input>/gi)); - text: The finished input element should have valid syntax. - testString: assert($("input[type=text]").length > 0 && code.match(/\s]+))?)+\s*|\s*)\/?>/gi), 'The finished input element should have valid syntax.'); - + testString: assert($("input[type=text]").length > 0); ```