コード例 #1
0
ファイル: AbstractGuy.php プロジェクト: NaszvadiG/ImageCMS
 public function lookForwardTo($role)
 {
     $this->scenario->comment('So that I ' . $role);
     if ($this->scenario->running()) {
         $this->scenario->runStep();
         return $this;
     }
 }
コード例 #2
0
 protected function comment($description)
 {
     $this->scenario->comment($description);
     if ($this->scenario->running()) {
         $this->scenario->runStep();
         return $this;
     }
 }
コード例 #3
0
 /**
  * @depends checkThatBookmarkListIsInitiallyEmpty
  * @param Admin $I
  * @param ModalDialog $dialog
  * @return Admin
  */
 public function checkThatAddingABookmarkAddsItemToTheBookmarkList(Admin $I, ModalDialog $dialog, Scenario $scenario)
 {
     $I->switchToIFrame();
     // open the scheduler module as we would like to put it into the bookmark liste
     $I->click('Scheduler', '#typo3-module-menu');
     $I->switchToIFrame('content');
     $I->click(self::$docHeaderBookmarkButtonSelector);
     // cancel the action to test the functionality
     $dialog->clickButtonInDialog('Cancel');
     // check if the list is still empty
     $this->checkThatBookmarkListIsInitiallyEmpty($I);
     $I->switchToIFrame('content');
     $I->click(self::$docHeaderBookmarkButtonSelector);
     $dialog->clickButtonInDialog('OK');
     $this->clickBookmarkDropdownToggleInTopbar($I);
     $I->waitForText('Scheduled tasks', 15, self::$topBarModuleSelector . ' ' . Topbar::$dropdownContainerSelector);
     // @test complete test when https://forge.typo3.org/issues/75689 is fixed
     $scenario->comment('Tests for deleting the item in the list and readding it are missing ' . 'as this is currently broken in the core. See https://forge.typo3.org/issues/75689');
     return $I;
 }
コード例 #4
0
ファイル: AbstractGuy.php プロジェクト: BatVane/Codeception
 public function lookForwardTo($role)
 {
     $this->scenario->comment(array('So that I ' . $role));
     return $this;
 }