VisibilityTest.php 547 B

1234567891011121314151617181920
  1. <?php
  2. namespace Behat\Mink\Tests\Driver\Basic;
  3. use Behat\Mink\Tests\Driver\TestCase;
  4. class VisibilityTest extends TestCase
  5. {
  6. public function testVisibility()
  7. {
  8. $this->getSession()->visit($this->pathTo('/js_test.html'));
  9. $webAssert = $this->getAssertSession();
  10. $clicker = $webAssert->elementExists('css', '.elements div#clicker');
  11. $invisible = $webAssert->elementExists('css', '#invisible');
  12. $this->assertFalse($invisible->isVisible());
  13. $this->assertTrue($clicker->isVisible());
  14. }
  15. }