Updated tests to verify placeholder text in use html 5 to require waypoint and closes #643
This commit is contained in:
@ -1325,8 +1325,8 @@
|
||||
"For example, if you wanted to make a text input field required, you can just add the word \"required\" within your <code>input</code> element use: <code><input type='text' required></code>"
|
||||
],
|
||||
"tests": [
|
||||
"assert($('input').prop('required'), 'Your text field have the property of being required.')",
|
||||
"assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"cat photo URL\".')"
|
||||
"assert($('input').prop('required'), 'Your text field should have the property of being required.')",
|
||||
"assert(new RegExp('cat photo URL').test($('input').prop('placeholder')), 'Your text field should have the placeholder text of \"cat photo URL\".')"
|
||||
],
|
||||
"challengeSeed": [
|
||||
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",
|
||||
|
Reference in New Issue
Block a user