Fix for webtest WebTest_Contribute_UpdateContributionTest.testDeletePremium
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 30 Oct 2014 13:07:09 +0000 (18:37 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 30 Oct 2014 13:07:09 +0000 (18:37 +0530)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php

index 13174e51e90acc000b818aa5dd874036bd14e425..aa429cf37d30ae50f89f03fce306f552ee23e554 100644 (file)
@@ -2018,7 +2018,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
    * @param $financialType
    */
   function addPremium($name, $sku, $amount, $price, $cost, $financialType) {
-    $this->waitForElementPresent("_qf_ManagePremiums_next-bottom");
+    $this->waitForElementPresent("_qf_ManagePremiums_upload-bottom");
     $this->type("name", $name);
     $this->type("sku", $sku);
     $this->click("CIVICRM_QFID_noImage_16");
@@ -2028,7 +2028,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
     if ($financialType) {
       $this->select("financial_type_id", "label={$financialType}");
     }
-    $this->click("_qf_ManagePremiums_next-bottom");
+    $this->click("_qf_ManagePremiums_upload-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
   }