From 8d486b9145978a4c1f25a8d4e26a4f908644bc0c Mon Sep 17 00:00:00 2001 From: Yves Hoppe Date: Sat, 30 May 2015 23:54:32 +0200 Subject: [PATCH] Added test for publish weblink --- tests/acceptance/AdministratorCategoriesCest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/acceptance/AdministratorCategoriesCest.php b/tests/acceptance/AdministratorCategoriesCest.php index 57f4ab0..70b6626 100644 --- a/tests/acceptance/AdministratorCategoriesCest.php +++ b/tests/acceptance/AdministratorCategoriesCest.php @@ -76,12 +76,7 @@ class AdministratorCategoriesCest $I->see('Category successfully saved',['id' => 'system-message-container']); $I->amGoingTo('Search for automated testing'); - $I->fillField(['xpath'=> "//input[@id=\"filter_search\"]"], "automated testing pub"); - - // 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->fillField(['xpath'=> "//input[@id=\"filter_search\"]"], "automated testing pub" . "\n"); $I->waitForText('Category Manager: Weblinks','5',['css' => 'h1']); $I->amGoingTo('Select the first weblink');