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