fix: add new test to create a set of new checkboxes (#18294)

This commit is contained in:
c-stu 2018-11-01 08:06:50 +00:00 committed by Kristofer Koishigawa
parent 5c4864ae00
commit b67e3d4305

View File

@ -33,8 +33,10 @@ tests:
- text: Make sure each of your <code>label</code> elements has a closing tag.
testString: assert(code.match(/<\/label>/g) && code.match(/<label/g) && code.match(/<\/label>/g).length === code.match(/<label/g).length, 'Make sure each of your <code>label</code> elements has a closing tag.');
- text: Give your checkboxes the <code>name</code> attribute of <code>personality</code>.
testString: assert($('label > input[type="checkbox"]').filter("[name='personality']").length > 2, 'Give your checkboxes the <code>name</code> attribute of <code>personality</code>.');
testString: assert($('label > input[type="checkbox"]').filter('[name="personality"]').length > 2, 'Give your checkboxes the <code>name</code> attribute of <code>personality</code>.');
- text: Each of your checkboxes should be added within the <code>form</code> tag.
testString: assert($('label').parent().get(0).tagName.match('FORM'), 'Each of your checkboxes should be added within the <code>form</code> tag.');
```
</section>