diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index 9ed893482d..b9cbe82209 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -515,13 +515,14 @@ "name": "Waypoint: Warn your Users of a Dangerous Action", "difficulty": 0.053, "description": [ - "Create a button with the text \"delete\" and give it the class btn-danger.", + "Create a button with the text \"Delete\" and give it the class btn-danger.", "Bootstrap comes with several pre-defined colors for buttons. The btn-danger class is the button color you'll use to notify users that the button performs a destructive action, such as deleting a cat photo.", "Note that these buttons still need the btn and btn-block classes." ], "tests": [ - "assert($('.btn-danger').length > 0, 'Your new button should have the class \"btn-danger\".')", - "assert($('.btn-block').length > 1, 'Both of your Bootstrap buttons should have the class \"btn-block\".')" + "assert($('button').hasClass('btn-danger'), 'Your new button should have the class \"btn-danger\".')", + "assert($('button.btn-block.btn').length > 2, 'All of your Bootstrap buttons should have the \"btn\" and \"btn-block\" classes.')", + "assert(new RegExp('delete', 'gi').test($('button.btn-danger').text()), 'Your new button should have the text \"delete\".')" ], "challengeSeed": [ "",