extend webtest to check CRM-18434
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 20 Apr 2016 11:31:14 +0000 (17:01 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 20 Apr 2016 11:31:14 +0000 (17:01 +0530)
tests/phpunit/WebTest/Contribute/OnlineContributionTest.php

index c22d6594c61b5ae1b18d147b3112f18be509aac0..8e01aa29766391e303bfdbcbb3f376cd258c4d4b 100644 (file)
@@ -132,9 +132,17 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase {
     $this->type("billing_postal_code-5", "94129");
     $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
 
+    $this->waitForElementPresent("xpath=//div[@class='crm-section no-label billing_name-section']");
+    $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $firstName . "billing");
+    $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $lastName . "billing");
+
     $this->click("_qf_Confirm_next-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
+    $this->waitForElementPresent("xpath=//div[@class='crm-section no-label billing_name-section']");
+    $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $firstName . "billing");
+    $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $lastName . "billing");
+
     //login to check contribution
 
     // Log in using webtestLogin() method