Ejemplo n.º 1
0
 /**
  * @param AcceptanceTester $I
  */
 public function testDelete(AcceptanceTester $I)
 {
     $I->wantTo('ensure that delete media-comment works');
     IndexPage::openBy($I);
     $I->see('Media Comments');
     $I->seeElement('a[href="' . Url::to(['/media-comment/delete', 'id' => 1]) . '"]');
     if (method_exists($I, 'acceptPopup') && method_exists($I, 'wait')) {
         $I->click('a[href="' . Url::to(['/media-comment/delete', 'id' => 1]) . '"]');
         $I->acceptPopup();
         $I->wait(3);
         $I->dontSee('Mr. WritesDown', '#media-comment-grid-view');
         $this->loadFixtures();
     }
 }
Ejemplo n.º 2
0
 /**
  * @param FunctionalTester $I
  */
 public function testDelete(FunctionalTester $I)
 {
     $I->wantTo('ensure that delete media-comment works');
     IndexPage::openBy($I);
     $I->see('Media Comments');
     $I->seeElement('a[href="' . Url::to(['/media-comment/delete', 'id' => 1]) . '"]');
     // Delete only work for acceptance JS
 }