Skip to content

Commit

Permalink
[TASK] Check existence of div.module only
Browse files Browse the repository at this point in the history
Due to issue https://forge.typo3.org/issues/91127 the module "Help >
About" can't be the default anymore, thus the acceptance tests must not
rely on this.

As a replacement, we check whether `div.module` can be found, which
should be sufficient for the intended check.
  • Loading branch information
andreaskienast authored and susannemoog committed Apr 20, 2020
1 parent 4e14e56 commit 0c345f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Core/Acceptance/Helper/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use Codeception\Exception\ConfigurationException;
use Codeception\Module;
use Codeception\Util\Locator;

/**
* Helper class to log in backend users and load backend
Expand Down Expand Up @@ -69,7 +70,7 @@ public function useExistingSession($role = '')

// Ensure main content frame is fully loaded, otherwise there are load-race-conditions
$wd->switchToIFrame('list_frame');
$wd->waitForText('Web Content Management System');
$wd->seeElement(Locator::firstElement('div.module'));
// And switch back to main frame preparing a click to main module for the following main test case
$wd->switchToIFrame();
}
Expand Down

0 comments on commit 0c345f5

Please sign in to comment.