Skip to content

Commit 4d56f56

Browse files
committed
Fixed failing test
Because expected exception wasn't thrown since lib-innerbrowser 1.1.0
1 parent 9917f5d commit 4d56f56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/data/app/view/form/button-not-in-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</div>
1010

1111
<div>
12-
<input type="submit" form="form-id" value="Submit 2" />
12+
<input type="submit" value="Submit 2" />
1313
</div>
1414
</body>
1515
</html>

tests/unit/Codeception/Module/PhpBrowserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ public function testClickingOnButtonOutsideFormDoesNotCauseFatalError()
609609
$this->expectException(TestRuntimeException::class);
610610
$this->expectExceptionMessage('Button is not inside a link or a form');
611611
$this->module->amOnPage('/form/button-not-in-form');
612-
$this->module->click(['xpath' => '//input[@type="submit"][@form="form-id"]']);
612+
$this->module->click('Submit 2');
613613
}
614614

615615
public function testSubmitFormWithoutEmptyOptionsInSelect()

0 commit comments

Comments
 (0)