From: jitendrapurohit Date: Wed, 20 Apr 2016 11:31:14 +0000 (+0530) Subject: extend webtest to check CRM-18434 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=18a7161fb2f1e21b21998b585bad62433a9df476;p=civicrm-core.git extend webtest to check CRM-18434 --- diff --git a/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php b/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php index c22d6594c6..8e01aa2976 100644 --- a/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php +++ b/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php @@ -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