public function Html5Test::testHtml5FormOutside in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Form/Html5Test.php \Behat\Mink\Tests\Driver\Form\Html5Test::testHtml5FormOutside()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ Html5Test.php, line 84
Class
Namespace
Behat\Mink\Tests\Driver\FormCode
public function testHtml5FormOutside() {
$this
->getSession()
->visit($this
->pathTo('/html5_form.html'));
$page = $this
->getSession()
->getPage();
$page
->fillField('other_field', 'hello');
$page
->pressButton('Submit separate form');
if ($this
->safePageWait(5000, 'document.getElementsByTagName("title") !== null')) {
$out = <<<OUT
'other_field' = 'hello',
OUT;
$this
->assertContains($out, $page
->getContent());
$this
->assertNotContains('first_name', $page
->getContent());
}
}