Skip to content

Commit

Permalink
[TASK] Ensure login module is completely loaded and processed
Browse files Browse the repository at this point in the history
  • Loading branch information
ohader committed May 2, 2020
1 parent bcc6b38 commit b7d8fe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Core/Acceptance/Helper/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ class Login extends Module
*/
public function useExistingSession($role = '')
{
/** @var Module\WebDriver $wd */
$wd = $this->getModule('WebDriver');
$wd->amOnPage('/typo3/index.php');
$wd->waitForElement('body[data-typo3-login-ready]');

$sessionCookie = '';
if ($role) {
Expand Down Expand Up @@ -73,4 +75,4 @@ public function useExistingSession($role = '')
// And switch back to main frame preparing a click to main module for the following main test case
$wd->switchToIFrame();
}
}
}

0 comments on commit b7d8fe0

Please sign in to comment.