Webtests fixes- master
authorWeb Access <rohan.katkar@webaccessglobal.com>
Tue, 1 Dec 2015 13:10:50 +0000 (18:40 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Tue, 1 Dec 2015 13:10:50 +0000 (18:40 +0530)
tests/phpunit/WebTest/Contribute/UpdateBatchPendingContributionTest.php
tests/phpunit/WebTest/Event/AddPricesetTest.php
tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php
tests/phpunit/WebTest/Member/StandaloneAddTest.php

index cbb65c8cc74454f5b1ef5cee76d15db49601decf..e675d0c7f864cec3a9dc057398554edc04095ac5 100644 (file)
@@ -50,7 +50,7 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
     $this->click('radio_ts', 'ts_all');
 
     $this->select('task', "label=Update pending contribution status");
-    $this->clickLink("_qf_Search_next_action");
+    $this->click("_qf_Search_next_action");
     $this->select('contribution_status_id', 'label=Completed');
     $this->click('_qf_Status_next');
     $this->waitForElementPresent("_qf_Result_done");
index 7ee69617eb097a588ad2aa62fb8ffb29f04503ed..f69ffdb641f9eb19673072c706188796bfe2238a 100644 (file)
@@ -538,7 +538,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     $this->_testVerifyPriceSet($validateStrings, $sid);
 
     $this->openCiviPage('event/add', 'reset=1&action=add', '_qf_EventInfo_upload-bottom');
-
+    $this->waitForElementPresent("_qf_EventInfo_upload-bottom");
     $eventTitle = 'My Conference - ' . substr(sha1(rand()), 0, 7);
     $email = 'Smith' . substr(sha1(rand()), 0, 7) . '@example.com';
     $eventDescription = 'Here is a description for this conference.';
@@ -681,7 +681,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     $this->openCiviPage('admin/price/field', "reset=1&action=browse&sid={$sid}", 'newPriceField');
     $this->click("xpath=//table[@id='options']/tbody/tr[3]/td[8]/a[text()='Edit Price Options']");
     $this->waitForElementPresent("xpath=//span[contains(text(), 'Done')]");
-    $this->click("xpath=//tr/td/div[text()='First Night']/../following-sibling::td[8]/span/a[text()='Edit Option']");
+    $this->click("xpath=//table[@id='options']/tbody/tr/td/div[text()='First Night']/../following-sibling::td[8]/span/a[text()='Edit Option']");
     $this->waitForElementPresent("_qf_Option_cancel");
     $this->type('label', 'First Night Edited');
     $this->click('_qf_Option_next');
index d91581e466660a06f4691188291d58053c1a4240..76c43594644d10517f569bf741bb812e52e515da 100644 (file)
@@ -44,6 +44,7 @@ class WebTest_Mailing_AddMessageTemplateTest extends CiviSeleniumTestCase {
 
     $this->openCiviPage("admin/messageTemplates/add", "action=add&reset=1");
 
+    $this->waitForElementPresent("_qf_MessageTemplates_cancel-bottom");
     // Fill message title.
     if (!$msgTitle) {
       $msgTitle = 'msg_' . substr(sha1(rand()), 0, 7);
index 1c5d8f5621b61573ac110053ac63468c5fb68caf..5f9878c3d5cd676b51696b33f323b06f0b1c54a9 100644 (file)
@@ -137,8 +137,8 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->click("_qf_Membership_upload");
 
     //View Membership
-    $this->waitForElementPresent("xpath=//div[@id='memberships']//table//tbody/tr[1]/td[9]/span/a[text()='View']");
-    $this->click("xpath=//div[@id='memberships']//table/tbody/tr[1]/td[9]/span/a[text()='View']");
+    $this->waitForElementPresent("xpath=//table[@class='display dataTable no-footer']/tbody/tr[1]/td[9]/span/a[text()='View']");
+    $this->click("xpath=xpath=//table[@class='display dataTable no-footer']/tbody/tr[1]/td[9]/span/a[text()='View']");
     $this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
 
     // verify soft credit data