Skip to content

Commit b83ca76

Browse files
authored
Merge pull request #942 from laravel/fix-assert-value-select
Fix assertValue for select elements
2 parents aec823c + 9f2fac8 commit b83ca76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Concerns/MakesAssertions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,9 +701,9 @@ public function assertValueIsNot($selector, $value)
701701
*/
702702
public function ensureElementSupportsValueAttribute($element, $fullSelector)
703703
{
704-
$tagName = $element->getTagName();
705-
706-
PHPUnit::assertTrue($tagName === 'textarea' || in_array($tagName, [
704+
PHPUnit::assertTrue(in_array($element->getTagName(), [
705+
'textarea',
706+
'select',
707707
'button',
708708
'input',
709709
'li',

0 commit comments

Comments
 (0)