Additional fix in webtest
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Tue, 9 Sep 2014 07:50:11 +0000 (13:20 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Tue, 9 Sep 2014 07:50:11 +0000 (13:20 +0530)
tests/phpunit/WebTest/Case/ActivityToCaseTest.php
tests/phpunit/WebTest/Pledge/StandaloneAddTest.php

index df56a55bf847e2338ec27dc0f5c0ebcb682ea58a..fe83fcc48e505515861a078d69d30cb53035069d 100644 (file)
@@ -88,10 +88,10 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
 
   function testLinkCases() {
     $this->webtestLogin();
-       
-       // Enable CiviCase module if necessary
+
+    // Enable CiviCase module if necessary
     $this->enableComponents("CiviCase");
-    
+
     //Add Case 1
     $this->openCiviPage('case/add', 'reset=1&action=add&atype=13&context=standalone', '_qf_Case_upload-bottom');
 
@@ -420,7 +420,6 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
 
     //Is custom field created
     $this->waitForText('crm-notification-container', "Custom field '$textFieldLabel' has been saved.");
-    //$this->waitForElementPresent("xpath=//div[@id='field_page']//div//table/tbody//tr/td/span[text()='$textFieldLabel']");
     $textFieldId = explode('&id=', $this->getAttribute("xpath=//table[@id='options']/tbody//tr/td[1]/span[text()='$textFieldLabel']/../../td[8]/span/a[1][text()='Edit Field']/@href"));
     $textFieldId = $textFieldId[1];
 
index 1cde952df6db5d921099bc3172634706a9d4ff16..1cc7adc45e232e4ac319b68b57d5e0034c4ed1ff 100644 (file)
@@ -91,6 +91,8 @@ class WebTest_Pledge_StandaloneAddTest extends CiviSeleniumTestCase {
 
     $this->waitForElementPresent("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
     $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+    $this->waitForElementPresent("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span[2]/a");
+    $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
   }
 }