From 07788b592aada8252c144cd789b3877a75fc4a23 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 30 Sep 2014 18:05:09 +0530 Subject: [PATCH] Webtest fix --- tests/phpunit/WebTest/Event/AddPricesetTest.php | 2 +- tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/phpunit/WebTest/Event/AddPricesetTest.php b/tests/phpunit/WebTest/Event/AddPricesetTest.php index 5f09b95ee1..b0a70870d9 100644 --- a/tests/phpunit/WebTest/Event/AddPricesetTest.php +++ b/tests/phpunit/WebTest/Event/AddPricesetTest.php @@ -600,7 +600,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase { $this->type('source', 'Event StandaloneAddTest Webtest'); // Select an event fee - $this->waitForElementPresent('priceset'); + $this->waitForElementPresent("xpath=//div[@id='priceset']/div[2]/div[2]"); $this->type("//div[@id='priceset']/div[2]/div[2]/input", '5'); $this->fireEvent("//div[@id='priceset']/div[2]/div[2]/input", 'blur'); $this->click("xpath=//div[@id='priceset']/div[3]/div[2]/div[1]/span/input"); diff --git a/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php b/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php index 61017d891f..cd62fa5442 100644 --- a/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php +++ b/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php @@ -296,7 +296,6 @@ class WebTest_Member_OnlineMembershipRenewTest extends CiviSeleniumTestCase { $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom"); $this->click("_qf_Confirm_next-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); //Find Member $this->openCiviPage("member/search", "reset=1", "member_end_date_high"); @@ -334,7 +333,6 @@ class WebTest_Member_OnlineMembershipRenewTest extends CiviSeleniumTestCase { $this->select("credit_card_exp_date[Y]", "value=2020"); $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom"); $this->click("_qf_Confirm_next-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); //Find Member $this->openCiviPage("member/search", "reset=1", "member_end_date_high"); -- 2.25.1