/** * Purge the index. */ public function administratorPurgeIndex(\Step\Acceptance\weblink $I, $scenario) { $scenario->skip('Temporarilly skipped, see: https://github.com/joomla-extensions/weblinks/issues/239'); $I->am('Administrator'); $I->wantToTest('Purging the index'); $I->doAdministratorLogin(); $I->amGoingTo('Navigate to the Smart Search page in /administrator/ and purge the index'); $I->amOnPage('administrator/index.php?option=com_finder'); $I->waitForText('Smart Search', 30, ['class' => 'page-title']); $I->click('Clear Index'); $I->acceptPopup(); $I->waitForText('All items have been successfully deleted', 30, ['class' => 'alert-message']); $I->see('All items have been successfully deleted', ['class' => 'alert-message']); }