You are here

public function EventsTest::testMouseOver in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Js/EventsTest.php \Behat\Mink\Tests\Driver\Js\EventsTest::testMouseOver()

@group mouse-events

File

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

Class

EventsTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testMouseOver() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/js_test.html'));
  $mouseOverDetector = $this
    ->getAssertSession()
    ->elementExists('css', '.elements div#mouseover-detector');
  $this
    ->assertEquals('no mouse action detected', $mouseOverDetector
    ->getText());
  $mouseOverDetector
    ->mouseOver();
  $this
    ->assertEquals('mouse overed', $mouseOverDetector
    ->getText());
}