Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/Selector/NamedSelectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function getSelectorTests()
// Fixture file, selector name, locator, expected number of exact matched elements, expected number of partial matched elements if different
return array(
'fieldset' => array('test.html', 'fieldset', 'fieldset-text', 2, 3),
'fieldset nested' => array('test.html', 'fieldset', 'inner', 1),

'field (name/placeholder/label)' => array('test.html', 'field', 'the-field', $fieldCount),
'field (input, with-id)' => array('test.html', 'field', 'the-field-input', 1),
Expand Down
8 changes: 8 additions & 0 deletions tests/Selector/fixtures/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
<!-- don't match fieldsets -->
<fieldset>fieldset-text</fieldset>
<fieldset></fieldset>

<!-- nested fieldsets -->
<fieldset>
<legend>outer</legend>
<fieldset>
<legend>inner</legend>
</fieldset>
</fieldset>
</div>

<div id="test-for-content-selector">
Expand Down