You are here

public function HoverTest::testClickHover in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/driver-testsuite/tests/Css/HoverTest.php \Behat\Mink\Tests\Driver\Css\HoverTest::testClickHover()

@group mouse-events @depends testMouseOverHover

File

vendor/behat/mink/driver-testsuite/tests/Css/HoverTest.php, line 27

Class

HoverTest

Namespace

Behat\Mink\Tests\Driver\Css

Code

public function testClickHover() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/css_mouse_events.html'));
  $this
    ->findById('reset-square')
    ->mouseOver();
  $this
    ->assertActionSquareHeight(100);
  $this
    ->findById('action-square')
    ->click();
  $this
    ->assertActionSquareHeight(200);
}