From d035932df9a6397991e9f30e767ceeacbdc90ef5 Mon Sep 17 00:00:00 2001 From: Gandharv Kumar Garg Date: Tue, 27 Mar 2018 18:32:33 +0530 Subject: [PATCH] fix(seed): Add test for checking the length of buttons is 2 (#16921) --- challenges/03-front-end-libraries/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/03-front-end-libraries/bootstrap.json b/challenges/03-front-end-libraries/bootstrap.json index e4864d41ca..c6481e18ad 100644 --- a/challenges/03-front-end-libraries/bootstrap.json +++ b/challenges/03-front-end-libraries/bootstrap.json @@ -392,7 +392,7 @@ "" ], "tests": [ - "assert(new RegExp(\"like\",\"gi\").test($(\"button\").text()), 'message: Create a new button element with the text \"Like\".');", + "assert(new RegExp(\"like\",\"gi\").test($(\"button\").text()) && ($(\"img.img-responsive + button.btn\").length > 0), 'message: Create a new button element with the text \"Like\".');", "assert($(\"button\").hasClass(\"btn\"), 'message: Your new button should have the class btn.');", "assert(code.match(/<\\/button>/g) && code.match(/