/** * @param AcceptanceTester $I */ public function testDeleteTerm(AcceptanceTester $I) { $I->wantTo('ensure that delete term works'); ViewPage::openBy($I); $I->see('View Taxonomy', 'h1'); $I->seeElement('a[href="' . Url::to(['/taxonomy/delete-term', 'id' => 2, 'term' => 2]) . '"]'); if (method_exists($I, 'acceptPopup') && method_exists($I, 'wait')) { $I->click('a[href="' . Url::to(['/taxonomy/delete-term', 'id' => 2, 'term' => 2]) . '"]'); $I->acceptPopup(); $I->wait(3); $I->dontSee('Sample Tag', '#term-grid-view'); $this->loadFixtures(); } }
/** * @param FunctionalTester $I */ public function testDeleteTerm(FunctionalTester $I) { $I->wantTo('ensure that delete term works'); ViewPage::openBy($I); $I->see('View Taxonomy', 'h1'); $I->seeElement('a[href="' . Url::to(['/taxonomy/delete-term', 'id' => 2, 'term' => 2]) . '"]'); // Delete only work on acceptance [JS] }