Issue Bug Closed

#104705InstallTool AbstractCest::_after might overlay actual error - e.g. in MaintenanceCest:.analyzeDatabaseStructureWorks

Ayke Halder 08/22/24, 15:29 updated 12/02/25, 14:33

Description

An error in InstallTool AbstractCest::_after might overlay the actual error – e.g. in MaintenanceCest::analyzeDatabaseStructureWorks

1) MaintenanceCest: Analyze database structure works
 Test  Acceptance/Application/InstallTool/MaintenanceCest.php:analyzeDatabaseStructureWorks

  [Facebook\WebDriver\Exception\ElementClickInterceptedException] element click intercepted: Element <a title="Logout" class="modulemenu-action t3js-login-lockInstallTool" role="menuitem" id="logout" href="">...</a> is not clickable at point (120, 396). Other element would receive the click: <div tabindex="-1" class="modal fade t3js-modal modal-type-template modal-severity-notice modal-style-default modal-size-large install-tool-modal show" style="z-index: 1010; display: block;" data-bs-backdrop="static" aria-modal="true" role="dialog">...</div>
  (Session info: chrome-headless-shell=124.0.6367.118)  

Scenario Steps:
 12. $I->click("Logout") at Acceptance/Application/InstallTool/AbstractCest.php:37
 11. $I->waitForElementVisible(".modal-dialog") at Acceptance/Application/InstallTool/MaintenanceCest.php:43
 10. $I->click("Analyze database…") at Acceptance/Application/InstallTool/MaintenanceCest.php:42
 9. $I->see("Maintenance","h1") at Acceptance/Application/InstallTool/MaintenanceCest.php:30
 8. $I->click("Maintenance") at Acceptance/Application/InstallTool/MaintenanceCest.php:29
 7. $I->waitForText("Maintenance") at Acceptance/Application/InstallTool/AbstractCest.php:66

Actually the error is somewhere else:

    public function analyzeDatabaseStructureWorks(ApplicationTester $I): void
    {
        $I->click('Analyze database…'); // <-- 10.
        $I->waitForElementVisible('.modal-dialog'); // <-- 11.
        $I->see('Analyze Database Structure', '.modal-dialog h4');  // <-- missing…
        $I->waitForElementVisible('.callout-success');  // <-- missing…
        $I->see('Database schema is up to date. Good job!', '.callout-success .callout-title');  // <-- missing…
        $I->click('.t3js-modal-close'); // <-- missing… and that's also why the 'logout'-action in AbstractCest::_after fails.
        $I->waitForElementNotVisible('.modal-dialog'); // <-- missing…
    }

Reviews 2