30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-03 06:50:49 +00:00

Added test for publish weblink

This commit is contained in:
Yves Hoppe 2015-05-30 23:54:32 +02:00
parent 9f6e29686d
commit 8d486b9145

View File

@ -76,12 +76,7 @@ class AdministratorCategoriesCest
$I->see('Category successfully saved',['id' => 'system-message-container']); $I->see('Category successfully saved',['id' => 'system-message-container']);
$I->amGoingTo('Search for automated testing'); $I->amGoingTo('Search for automated testing');
$I->fillField(['xpath'=> "//input[@id=\"filter_search\"]"], "automated testing pub"); $I->fillField(['xpath'=> "//input[@id=\"filter_search\"]"], "automated testing pub" . "\n");
// Not so nice workaround: $I->executeJS("jQuery('#adminForm').submit();");
// TODO We need an id for the search button in com_categories (or find a better way addressing it)
$I->click(['xpath'=> "//input[@id=\"search_button\"]"]);
$I->waitForText('Category Manager: Weblinks','5',['css' => 'h1']); $I->waitForText('Category Manager: Weblinks','5',['css' => 'h1']);
$I->amGoingTo('Select the first weblink'); $I->amGoingTo('Select the first weblink');