/** * After the tests, the Smart Search content plugin must be disabled, ready for the next test. */ public function administratorDisableSmartsearchWeblinksPlugin(\Step\Acceptance\weblink $I, $scenario) { $scenario->skip('Temporarilly skipped, see: https://github.com/joomla-extensions/weblinks/issues/239'); $I->am('Administrator'); $I->wantToTest('Disabling the Smart Search content plugin, ready for the next test run'); $I->doAdministratorLogin(); $I->amGoingTo('Navigate to Plugins page in /administrator/ and disable the Smart Search Content plugin'); $I->amOnPage('administrator/index.php?option=com_plugins&view=plugins'); $I->searchForItem('Smart Search - Web Links'); $I->waitForText('Plugins', 30, ['class' => 'page-title']); $I->waitForElement(['link' => 'Smart Search - Web Links']); $I->checkOption(['id' => 'cb0']); $I->clickToolbarButton('Unpublish'); // Note: The button is called "Disable", but we need to call it "Unpublish" here. $I->waitForText('Plugin successfully disabled', 30, ['class' => 'alert-message']); }