From b6e8e5d1a7b603bca8fb5e64405c8b08647351a0 Mon Sep 17 00:00:00 2001 From: JelenaBarinova Date: Thu, 3 Dec 2015 16:13:26 -0800 Subject: [PATCH] Fix test to fail on incorrect input in Waypoint: Add Font Awesome Icons to our Buttons Added more precise checking for not only class of the button but also text --- challenges/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/bootstrap.json b/challenges/bootstrap.json index 6a5f08981a..9190bc375a 100644 --- a/challenges/bootstrap.json +++ b/challenges/bootstrap.json @@ -1141,7 +1141,7 @@ ], "tests": [ "assert($(\"i\").hasClass(\"fa fa-thumbs-up\"), 'message: Add an i element with the classes fa and fa-thumbs-up.');", - "assert($(\"i.fa-thumbs-up\").parent().text().match(/Like/gi), 'message: Your fa-thumbs-up icon should be located within the Like button.');", + "assert($(\"i.fa-thumbs-up\").parent().text().match(/Like/gi) && $(\".btn-primary > i\").hasClass(\"fa fa-thumbs-up\"), 'message: Your fa-thumbs-up icon should be located within the Like button.');", "assert($(\"button\").children(\"i\").length > 0, 'message: Nest your i element within your button element.');", "assert(code.match(/<\\/i>/g), 'message: Make sure your i element has a closing tag.');" ],