From dfe6da9ea64ecd748e3c88a289743b0c8414d7ed Mon Sep 17 00:00:00 2001 From: Aniruddh Agarwal Date: Sat, 19 Sep 2015 17:41:47 +0800 Subject: [PATCH] Added test to determine num of elements with class --- seed/challenges/html5-and-css.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seed/challenges/html5-and-css.json b/seed/challenges/html5-and-css.json index 6d75e39b75..8f5f48cbec 100644 --- a/seed/challenges/html5-and-css.json +++ b/seed/challenges/html5-and-css.json @@ -551,7 +551,8 @@ "assert($(\"p\").length > 1, 'You need 2 p elements with Kitty Ipsum text.')", "assert(editor.match(/<\\/p>/g) && editor.match(/<\\/p>/g).length === editor.match(/

p elements has a closing tag.')", "assert.isTrue((/Purr\\s+jump\\s+eat/gi).test($(\"p\").text()), 'Your p element should contain the first few words of the provided additional kitty ipsum text.')", - "assert($(\"p\").css(\"font-size\") === \"16px\", 'Give your p elements the font-size of 16px.')" + "assert($(\"p.red-text\").length === 2, 'Give each of your p elements the red-text class.')", + "assert($(\"p\").css(\"font-size\") === \"16px\", 'Give elements with the red-text class a font-size of 16px.')" ], "challengeSeed": [ "