From f32e369137758b4676d992c0dd5e268812c4aa8f Mon Sep 17 00:00:00 2001 From: puneet0191 Date: Sun, 6 Sep 2015 22:49:22 +0530 Subject: [PATCH 1/2] Fixing Categories Tests --- tests/acceptance/AdministratorCategoriesCest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/AdministratorCategoriesCest.php b/tests/acceptance/AdministratorCategoriesCest.php index 9e2d0bb..04f0810 100644 --- a/tests/acceptance/AdministratorCategoriesCest.php +++ b/tests/acceptance/AdministratorCategoriesCest.php @@ -83,7 +83,7 @@ class AdministratorCategoriesCest $I->click(['xpath'=> "//input[@id=\"cb0\"]"]); $I->amGoingTo('try to publish a weblink category'); - $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list');}else{ Joomla.submitbutton('categories.publish')}\"]"]); + $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list.');}else{ Joomla.submitbutton('categories.publish')}\"]"]); $I->waitForText('Weblinks: Categories','30',['css' => 'h1']); $I->expectTo('see a success message after publishing the category'); $I->see('1 category successfully published.',['id' => 'system-message-container']); @@ -119,7 +119,7 @@ class AdministratorCategoriesCest $I->click(['xpath'=> "//input[@id=\"cb0\"]"]); $I->amGoingTo('Try to publish a weblink category'); - $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list');}else{ Joomla.submitbutton('categories.publish')}\"]"]); + $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list.');}else{ Joomla.submitbutton('categories.publish')}\"]"]); $I->waitForText('Weblinks: Categories','30',['css' => 'h1']); $I->expectTo('See a success message after publishing the category'); $I->see('1 category successfully published.',['id' => 'system-message-container']); @@ -130,7 +130,7 @@ class AdministratorCategoriesCest $I->click(['xpath'=> "//input[@id=\"cb0\"]"]); $I->amGoingTo('Try to unpublish a weblink category'); - $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list');}else{ Joomla.submitbutton('categories.unpublish')}\"]"]); + $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list.');}else{ Joomla.submitbutton('categories.unpublish')}\"]"]); $I->waitForText('Weblinks: Categories','30',['css' => 'h1']); $I->expectTo('See a success message after unpublishing the category'); $I->see('1 category successfully unpublished',['id' => 'system-message-container']); From f1a532bd38b1e91c3c4790d05d2f105532620840 Mon Sep 17 00:00:00 2001 From: puneet0191 Date: Sun, 6 Sep 2015 22:49:36 +0530 Subject: [PATCH 2/2] Fixing Weblinks Test --- tests/acceptance/AdministratorWeblinksCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/AdministratorWeblinksCest.php b/tests/acceptance/AdministratorWeblinksCest.php index e591692..b11c378 100644 --- a/tests/acceptance/AdministratorWeblinksCest.php +++ b/tests/acceptance/AdministratorWeblinksCest.php @@ -67,7 +67,7 @@ class AdministratorWeblinksCest $I->amGoingTo('Delete the just saved weblink'); $I->checkAllResults(); - $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list');}else{ Joomla.submitbutton('weblinks.trash')}\"]"]); + $I->click(['xpath'=> "//button[@onclick=\"if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list.');}else{ Joomla.submitbutton('weblinks.trash')}\"]"]); $I->waitForText('Web Links','30',['css' => 'h1']); $I->expectTo('see a success message and the weblink removed from the list'); $I->see('Web link successfully trashed',['id' => 'system-message-container']);