We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9917f5d commit 4d56f56Copy full SHA for 4d56f56
tests/data/app/view/form/button-not-in-form.php
@@ -9,7 +9,7 @@
9
</div>
10
11
<div>
12
- <input type="submit" form="form-id" value="Submit 2" />
+ <input type="submit" value="Submit 2" />
13
14
</body>
15
</html>
tests/unit/Codeception/Module/PhpBrowserTest.php
@@ -609,7 +609,7 @@ public function testClickingOnButtonOutsideFormDoesNotCauseFatalError()
609
$this->expectException(TestRuntimeException::class);
610
$this->expectExceptionMessage('Button is not inside a link or a form');
611
$this->module->amOnPage('/form/button-not-in-form');
612
- $this->module->click(['xpath' => '//input[@type="submit"][@form="form-id"]']);
+ $this->module->click('Submit 2');
613
}
614
615
public function testSubmitFormWithoutEmptyOptionsInSelect()
0 commit comments