diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.english.md index 969ce98133..c9d6ba2f22 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.english.md @@ -22,15 +22,14 @@ Camper Cat's Mortal Kombat survey results are in! Wrap a time tag a ```yml tests: - - text: Your time tags should wrap around the text "Thursday, September 15<sup>th</sup>". - testString: assert($('time').text().match(/Thursday, September 15th/g), 'Your time tags should wrap around the text "Thursday, September 15<sup>th</sup>".'); - - text: Your time tag should have a datetime attribute that is not empty. - testString: assert($('time').attr('datetime'), 'Your time tag should have a datetime attribute that is not empty.'); - - text: Your datetime attribute should be set to a value of 2016-09-15. - testString: assert($('time').attr('datetime') === "2016-09-15", 'Your datetime attribute should be set to a value of 2016-09-15.'); - - text: Make sure your time element has a closing tag. - testString: assert(code.match(/<\/time>/g) && code.match(/<\/time>/g).length === 4, 'Make sure your time element has a closing tag.'); - + - text: Your code should have a p element which includes the text "Thank you to everyone for responding to Master Camper Cat's survey." and include a time element. + testString: assert(timeElement.length); + - text: Your added time tags should wrap around the text "Thursday, September 15<sup>th</sup>". + testString: assert(timeElement.length && $(timeElement).html().trim() === "Thursday, September 15th"); + - text: Your added time tag should have a datetime attribute that is not empty. + testString: assert(datetimeAttr && datetimeAttr.length); + - text: Your added datetime attribute should be set to a value of 2016-09-15. + testString: assert(datetimeAttr === "2016-09-15"); ``` @@ -76,7 +75,18 @@ tests: +
+```html + +``` + +