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