Webtest fixes
authorWeb Access <rohan.katkar@webaccessglobal.com>
Wed, 11 Mar 2015 13:26:13 +0000 (18:56 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Wed, 11 Mar 2015 13:26:13 +0000 (18:56 +0530)
tests/phpunit/WebTest/Contribute/UpdateBatchPendingContributionTest.php
tests/phpunit/WebTest/Export/ContactTest.php

index c4a5a6c3233617511227e74737d790462fa3ffaa..9cad8ffcc48da0443aff037aefcba38ac734fbde 100644 (file)
@@ -44,7 +44,7 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
     $this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
 
     $this->type("sort_name", "Individual");
-    $this->click('contribution_status_id_2');
+    $this->click('contribution_status_id');
     $this->clickLink("_qf_Search_refresh");
 
     $this->click('radio_ts', 'ts_all');
@@ -59,7 +59,7 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
     $this->waitForElementPresent("contribution_date_low");
 
     $this->type("sort_name", "Individual");
-    $this->click('contribution_status_id_1');
+    $this->click('contribution_status_id');
     $this->click("_qf_Search_refresh");
 
     $this->waitForPageToLoad($this->getTimeoutMsec());
@@ -99,13 +99,14 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
     $this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
 
     $this->type("sort_name", "Anderson");
-    $this->click('contribution_status_id_2');
+    $this->multiselect2('contribution_status_id', array("Pending"));
     $this->click("_qf_Search_refresh");
 
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->click('radio_ts', 'ts_all');
 
     $this->select('task', "label=Update Pending Contribution Status");
+    $this->waitForElementPresent("_qf_Search_next_action");
     $this->click("_qf_Search_next_action");
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->select('contribution_status_id', 'label=Completed');
@@ -116,7 +117,7 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
     $this->waitForElementPresent("contribution_date_low");
 
     $this->type("sort_name", "Anderson");
-    $this->click('contribution_status_id_1');
+    $this->click('contribution_status_id');
     $this->click("_qf_Search_refresh");
 
     $this->waitForPageToLoad($this->getTimeoutMsec());
@@ -172,9 +173,9 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
     // Is status message correct?
     $this->waitForText("crm-notification-container", "Event registration for $firstName Anderson has been added");
 
-    $this->waitForElementPresent("xpath=//form[@id='Search']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
+    $this->waitForElementPresent("xpath=//form[@class='CRM_Event_Form_Search crm-search-form']/table//tbody/tr[1]/td[8]/span/a[text()='View']");
     //click through to the participant view screen
-    $this->click("xpath=//form[@id='Search']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
+    $this->click("xpath=//form[@class='CRM_Event_Form_Search crm-search-form']/table//tbody/tr[1]/td[8]/span/a[text()='View']");
     $this->waitForElementPresent('_qf_ParticipantView_cancel-bottom');
 
     $this->webtestVerifyTabularData(
index fe287a9275923d89bd8b314f1f84980777b74f30..24e967fc55f408f27f5c134a26c95bd75b775387 100644 (file)
@@ -123,9 +123,6 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
         'First Name' => $secondContactName,
         'Last Name' => 'John',
         'Email' => '' . strtolower($emailContactSecond) . '',
-        'Sort Name' => $sortSecondName,
-        'Display Name' => $prefixLabelContactScnd . ' ' . $displaySecondName . ' ' . $suffixLabelContactScnd,
-        'Individual Prefix' => $prefixLabelContactScnd,
         'Individual Suffix' => $suffixLabelContactScnd,
         'Gender' => $genderLabelContactScnd,
       ),