You are here

public function VisibilityTest::testVisibility in Zircon Profile 8

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

File

vendor/behat/mink/driver-testsuite/tests/Basic/VisibilityTest.php, line 9

Class

VisibilityTest

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testVisibility() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/js_test.html'));
  $webAssert = $this
    ->getAssertSession();
  $clicker = $webAssert
    ->elementExists('css', '.elements div#clicker');
  $invisible = $webAssert
    ->elementExists('css', '#invisible');
  $this
    ->assertFalse($invisible
    ->isVisible());
  $this
    ->assertTrue($clicker
    ->isVisible());
}