public function EventsTest::testBlur in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Js/EventsTest.php \Behat\Mink\Tests\Driver\Js\EventsTest::testBlur()
@group mouse-events @depends testFocus
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Js/ EventsTest.php, line 65
Class
Namespace
Behat\Mink\Tests\Driver\JsCode
public function testBlur() {
$this
->getSession()
->visit($this
->pathTo('/js_test.html'));
$focusBlurDetector = $this
->getAssertSession()
->elementExists('css', '.elements input#focus-blur-detector');
$this
->assertEquals('no action detected', $focusBlurDetector
->getValue());
$focusBlurDetector
->blur();
$this
->assertEquals('blured', $focusBlurDetector
->getValue());
}