Skip to content

Commit

Permalink
Add a more specific submit button selector for test login helper
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Nov 14, 2024
1 parent 972d63b commit 7d45324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codeception/_support/E2eTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function login($username, $password, $waitForReload = true){
$this->waitForElementVisible('#LoginForm');
$this->fillField('input[name="LoginForm[login]"]', $username);
$this->fillField('input[name="LoginForm[password]"]', $password);
$this->click('#LoginForm button');
$this->click('#LoginForm button[type="submit"]');
if ($waitForReload) {
$this->waitForElementNotVisible('#LoginForm', 30);
// workaround for failing login, probably caused by "smart-wait", see also https://github.com/Codeception/Codeception/pull/4389/files
Expand Down

0 comments on commit 7d45324

Please sign in to comment.