diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json
index 9549a6f4a8..9cc32106d7 100644
--- a/seed_data/challenges/basic-html5-and-css.json
+++ b/seed_data/challenges/basic-html5-and-css.json
@@ -383,7 +383,7 @@
"description": [
"Apply the \"red-text\" class to the h2
and p
elements.",
"Remember that you can attach classes to HTML elements by using the class=\"your-class-here\"
within the relevant element's opening tag.",
- "Remember that "
+ "Remember that CSS selectors require a period at the beginning like this: .red-text { color: blue; }
, but that class declarations don't use a period, like this: <h2 class=\"blue-text\">CatPhotoApp<h2>
."
],
"tests": [
"assert($('h2').css('color') === 'rgb(255, 0, 0)', 'Your h2 element should be red.')",
@@ -426,6 +426,7 @@
],
"tests": [
"assert($('p').length > 1, 'You need 2 paragraph elements with Kitty Ipsum text.')",
+ "assert(editor.match(/<\\/p>/g).length > 1, 'Be sure that each of your p
elements has a closing tag.')",
"assert($('p').css('font-size') === '16px', 'Your paragraph elements should have the font-size of 16px.')"
],
"challengeSeed": [
@@ -503,7 +504,9 @@
"Now you can set \"Lobster\" as a font-family attribute on your h2
element."
],
"tests": [
- "assert($('h2').css('font-family').match(/lobster/i), 'Your h2 element should use the font \"Lobster\".')"
+ "assert(new RegExp('googleapis', 'gi').test(editor), 'Import the \"Lobster\" font.')",
+ "assert($('h2').css('font-family').match(/lobster/i), 'Your h2
element should use the font \"Lobster\".')",
+ "assert($('p').css('font-family').match(/monospace/i), 'Your p
element should still use the font \"Monospace\".')"
],
"challengeSeed": [
"