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