From 532e6e272343f35e1d406d18180b4601d83dced5 Mon Sep 17 00:00:00 2001 From: Christian Sciberras Date: Sun, 10 Mar 2024 15:34:07 +0100 Subject: [PATCH] Focus element before testing blur --- tests/Js/EventsTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Js/EventsTest.php b/tests/Js/EventsTest.php index f5383e7..650379e 100644 --- a/tests/Js/EventsTest.php +++ b/tests/Js/EventsTest.php @@ -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()); }