Add test to check text of button, closes #608

This commit is contained in:
terakilobyte
2015-05-27 10:27:30 -04:00
parent 39d364e112
commit b89c5d07a7

View File

@ -160,7 +160,8 @@
"Bootstrap has its own button styles, which look much better than the plain HTML ones." "Bootstrap has its own button styles, which look much better than the plain HTML ones."
], ],
"tests": [ "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": [ "challengeSeed": [
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>", "<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",