You are here

public function JavascriptTest::testIssue225 in Zircon Profile 8.0

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

File

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

Class

JavascriptTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testIssue225() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/issue225.html'));
  $this
    ->getSession()
    ->getPage()
    ->pressButton('Créer un compte');
  $this
    ->getSession()
    ->wait(5000, '$("#panel").text() != ""');
  $this
    ->assertContains('OH AIH!', $this
    ->getSession()
    ->getPage()
    ->getText());
}