Skip to content

Commit

Permalink
Merge pull request #91 from uuf6429/bugfix/improve-blur-test
Browse files Browse the repository at this point in the history
Focus element before testing blur
  • Loading branch information
stof authored Mar 11, 2024
2 parents f9d36b6 + 776cb42 commit 2ef2bff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Js/EventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function testBlur(): void
$focusBlurDetector = $this->getAssertSession()->elementExists('css', '.elements input#focus-blur-detector');
$this->assertEquals('no action detected', $focusBlurDetector->getValue());

$focusBlurDetector->focus();
$focusBlurDetector->blur();
$this->assertEquals('blured', $focusBlurDetector->getValue());
}
Expand Down

0 comments on commit 2ef2bff

Please sign in to comment.