You are here

public function HoverTest::testRightClickHover 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::testRightClickHover()

@group mouse-events @depends testMouseOverHover

File

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

Class

HoverTest

Namespace

Behat\Mink\Tests\Driver\Css

Code

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