/** * @param Admin $I */ public function checkIfModuleMenuIsCollapsible(Admin $I) { foreach (['#web', '#system'] as $moduleGroupId) { $I->seeElement($moduleGroupId . ' .typo3-module-menu-group-container .typo3-module-menu-item'); $I->wantTo('collapse the menu element'); $I->click($moduleGroupId . ' .typo3-module-menu-group-header'); $I->waitForElementNotVisible($moduleGroupId . ' .typo3-module-menu-group-container .typo3-module-menu-item'); $I->wantTo('expand the menu element again'); $I->click($moduleGroupId . ' .typo3-module-menu-group-header'); $I->seeElement($moduleGroupId . ' .typo3-module-menu-group-container .typo3-module-menu-item'); } }
/** * @depends createASchedulerTask * @param Admin $I * @param ModalDialog $modalDialog */ public function canDeleteTask(Admin $I, ModalDialog $modalDialog) { $I->wantTo('See a delete button for a task'); $I->seeElement('//a[contains(@title, "Delete")]'); $I->click('//a[contains(@title, "Delete")]'); $I->wantTo('Cancel the delete dialog'); $modalDialog->clickButtonInDialog('Cancel'); $I->switchToIFrame('content'); $I->wantTo('Still see and can click the Delete button as the deletion has been canceled'); $I->click('//a[contains(@title, "Delete")]'); $modalDialog->clickButtonInDialog('OK'); $I->switchToIFrame('content'); $I->see('The task was successfully deleted.'); $I->see('No tasks defined yet'); }
/** * @param Admin $I */ public function checkIfTypo3LogoIsLinked(Admin $I) { $I->seeElement('#typo3-topbar .typo3-topbar-site-logo', ['href' => 'https://typo3.org/']); }
/** * @param Admin $I */ public function checkIfUploadFormAppears(Admin $I) { $I->cantSeeElement('.module-body .uploadForm'); $I->click('a[title="Upload Extension .t3x/.zip"]', '.module-docheader'); $I->seeElement('.module-body .uploadForm'); }