From 18a7161fb2f1e21b21998b585bad62433a9df476 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 20 Apr 2016 17:01:14 +0530 Subject: [PATCH] extend webtest to check CRM-18434 --- .../phpunit/WebTest/Contribute/OnlineContributionTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.25.1