From 3cf399a73fbe39de023dceec087bff1599b4ed88 Mon Sep 17 00:00:00 2001 From: Dieter Daems Date: Thu, 3 Dec 2015 05:34:46 +0100 Subject: [PATCH] Fix: Check if both P tags have a font-size of 16px currently the test would pass, when you add font-size 16px to the red-text class. Even tho the second p tag didn't have the class. --- seed/challenges/html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/html5-and-css.json b/seed/challenges/html5-and-css.json index fd8f176d7e..8c2623bbee 100644 --- a/seed/challenges/html5-and-css.json +++ b/seed/challenges/html5-and-css.json @@ -580,7 +580,7 @@ "assert($(\"p\").length > 1, 'message: You need 2 p elements with Kitty Ipsum text.');", "assert(code.match(/<\\/p>/g) && code.match(/<\\/p>/g).length === code.match(/

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