You are here

public function EventsTest::testBlur in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

EventsTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

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());
}