/** * @param Admin $I */ public function selectingAModuleDoesHighlightIt(Admin $I) { $I->seeNumberOfElements('#web .typo3-module-menu-item-link', [2, 20]); $I->wantTo('check that the second element has no "active" class\''); $I->cantSeeElement('#web #web_list.active'); $I->click('#web #web_list .typo3-module-menu-item-link'); $I->wantTo('see that the second element has an "active" class'); $I->canSeeElement('#web #web_list.active'); }
/** * @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'); }