You are here

VisibilityTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/VisibilityTest.php

File

vendor/behat/mink/driver-testsuite/tests/Basic/VisibilityTest.php
View source
<?php

namespace Behat\Mink\Tests\Driver\Basic;

use Behat\Mink\Tests\Driver\TestCase;
class VisibilityTest extends TestCase {
  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());
  }

}

Classes

Namesort descending Description
VisibilityTest