You are here

public function JavascriptTest::testAriaRoles in Zircon Profile 8

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

File

vendor/behat/mink/driver-testsuite/tests/Js/JavascriptTest.php, line 9

Class

JavascriptTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testAriaRoles() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/aria_roles.html'));
  $this
    ->getSession()
    ->wait(5000, '$("#hidden-element").is(":visible") === false');
  $this
    ->getSession()
    ->getPage()
    ->pressButton('Toggle');
  $this
    ->getSession()
    ->wait(5000, '$("#hidden-element").is(":visible") === true');
  $this
    ->getSession()
    ->getPage()
    ->clickLink('Go to Index');
  $this
    ->assertEquals($this
    ->pathTo('/index.html'), $this
    ->getSession()
    ->getCurrentUrl());
}