public function EventsTest::testRightClick in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Js/EventsTest.php \Behat\Mink\Tests\Driver\Js\EventsTest::testRightClick()
@group mouse-events
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Js/ EventsTest.php, line 38
Class
Namespace
Behat\Mink\Tests\Driver\JsCode
public function testRightClick() {
$this
->getSession()
->visit($this
->pathTo('/js_test.html'));
$clicker = $this
->getAssertSession()
->elementExists('css', '.elements div#clicker');
$this
->assertEquals('not clicked', $clicker
->getText());
$clicker
->rightClick();
$this
->assertEquals('right clicked', $clicker
->getText());
}