You are here

public function EventsTest::testDoubleClick 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::testDoubleClick()

@group mouse-events

File

vendor/behat/mink/driver-testsuite/tests/Js/EventsTest.php, line 25

Class

EventsTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testDoubleClick() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/js_test.html'));
  $clicker = $this
    ->getAssertSession()
    ->elementExists('css', '.elements div#clicker');
  $this
    ->assertEquals('not clicked', $clicker
    ->getText());
  $clicker
    ->doubleClick();
  $this
    ->assertEquals('double clicked', $clicker
    ->getText());
}