diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index bc840c8068..9ed893482d 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -429,13 +429,14 @@ "name": "Waypoint: Call out Optional Actions with Button Info", "difficulty": 0.052, "description": [ - "Create a new block-level Bootstrap button below your \"like\" button with the text \"Info\", and add Bootstrap's btn-info and btn-block classes to it.", + "Create a new block-level Bootstrap button below your \"Like\" button with the text \"Info\", and add Bootstrap's btn-info and btn-block classes to it.", "Bootstrap comes with several pre-defined colors for buttons. The btn-info class is used to call attention to optional actions that the user can take.", "Note that these buttons still need the btn and btn-block classes." ], "tests": [ - "assert($('.btn-info').length > 0, 'your new button should have the class \"btn-info\".')", - "assert($('.btn-block').length > 1, 'Both of your Bootstrap buttons should have the class \"btn-block\".')" + "assert($('button').hasClass('btn-info'), 'Your new button should have the class \"btn-info\".')", + "assert($('button.btn-block.btn').length > 1, 'Both of your Bootstrap buttons should have the \"btn\" and \"btn-block\" classes.')", + "assert(new RegExp('info', 'gi').test($('button.btn-info').text()), 'Your new button should have the text \"Info\".')" ], "challengeSeed": [ "",