Skip to content

Commit

Permalink
Focus element before testing blur
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Mar 10, 2024
1 parent 307efdc commit 532e6e2
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 @@ -68,6 +68,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 532e6e2

Please sign in to comment.