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