From b89c5d07a7c46528c686d2373c7428ed0b0b85c8 Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Wed, 27 May 2015 10:27:30 -0400 Subject: [PATCH] Add test to check text of button, closes #608 --- seed_data/challenges/bootstrap.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index 1db7d227aa..9089122e31 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -160,7 +160,8 @@ "Bootstrap has its own button styles, which look much better than the plain HTML ones." ], "tests": [ - "assert($('.btn').length > 0, 'your new button should have the class \"btn\".')" + "assert($('.btn').length > 0, 'your new button should have the class \"btn\".');", + "assert(new RegExp('like this photo','gi').test($('.btn').text()), 'your button should have the test \"like this photo\"');" ], "challengeSeed": [ "",