WebtestFix
authoratif-shaikh <shaikh388@gmail.com>
Fri, 19 Sep 2014 10:16:37 +0000 (15:46 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Fri, 19 Sep 2014 10:16:37 +0000 (15:46 +0530)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/WebTest/Contribute/OnlineContributionTest.php

index 7b54781ce811836b2554547ba314aab4eb394177..ff5bcd174e07d7f15423c4f3f5b72e6d9ad15ab4 100644 (file)
@@ -730,7 +730,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
 
     if ($processorName === 'Test Processor') {
       // Use the default test processor, no need to create a new one
-      $this->openCiviPage('admin/paymentProcessor', 'action=update&id=1&reset=1');
+      $this->openCiviPage('admin/paymentProcessor', 'action=update&id=1&reset=1', '_qf_PaymentProcessor_cancel-bottom');
       $this->check('is_default');
       $this->clickLink('_qf_PaymentProcessor_next-bottom');
       return 1;
index 60d83a3d42e7ff7ac3ab2dee523164a7c15f6c42..b70cef7e6fd69927b145305bec9ddb5c36e608ff 100644 (file)
@@ -235,17 +235,17 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase {
     $this->type('title', "Test Priceset $rand");
     $this->check('extends_2');
     $this->select("financial_type_id", "label=Donation");
-    $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
+    $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom', FALSE);
     $sid = $this->urlArg('sid');
     //add field
     $this->type('label', "Testfield");
     $this->select('html_type', "value=Radio");
     $this->type('option_label_1', 'test Label');
     $this->type('option_amount_1', 0.00);
-    $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
+    $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom', FALSE);
     $this->openCiviPage("admin/contribute/amount", "reset=1&action=update&id=$pageId", '_qf_Amount_cancel-bottom');
     $this->select('price_set_id', "value=$sid");
-    $this->clickLink('_qf_Amount_upload_done-bottom');
+    $this->clickLink('_qf_Amount_upload_done-bottom', FALSE);
 
     //Contribution using priceset
     $this->_doContributionAndVerifyData($pageId, TRUE);
@@ -303,8 +303,8 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase {
     $this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
 
     $this->type("sort_name", "$firstName $lastName");
-    $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
-    $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
+    $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", FALSE);
+    $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
 
     //View Contribution Record and verify data
     $expected = array(