From 80a9d0351cadaaad998dadbc85e21dcb013f5f45 Mon Sep 17 00:00:00 2001 From: Sudha Bisht Date: Mon, 16 Nov 2015 18:47:26 +0530 Subject: [PATCH] Webtest Fix --- tests/phpunit/WebTest/Contribute/PCPAddTest.php | 2 +- .../WebTest/Member/InheritedMembershipTest.php | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/phpunit/WebTest/Contribute/PCPAddTest.php b/tests/phpunit/WebTest/Contribute/PCPAddTest.php index 081fa8b459..b00541976d 100755 --- a/tests/phpunit/WebTest/Contribute/PCPAddTest.php +++ b/tests/phpunit/WebTest/Contribute/PCPAddTest.php @@ -176,7 +176,7 @@ class WebTest_Contribute_PCPAddTest extends CiviSeleniumTestCase { //Find Contribution $this->openCiviPage("contribute/search", "reset=1", "contribution_date_low"); $this->waitForElementPresent('contribution_pcp_made_through_id'); - $this->select2('pcp_made_through_id', $lastName . ', ' . $firstName); + $this->multiselect2('contribution_pcp_made_through_id', array($pcpTitle)); $this->clickLink("_qf_Search_refresh", "xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[11]/span/a[1][text()='View']"); $this->click("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[11]/span/a[1][text()='View']"); diff --git a/tests/phpunit/WebTest/Member/InheritedMembershipTest.php b/tests/phpunit/WebTest/Member/InheritedMembershipTest.php index 090dd60658..09538e59cd 100644 --- a/tests/phpunit/WebTest/Member/InheritedMembershipTest.php +++ b/tests/phpunit/WebTest/Member/InheritedMembershipTest.php @@ -64,9 +64,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { $this->select('period_type', 'value=rolling'); - $this->removeSelection('relationship_type_id', 'label=- select -'); - $this->addSelection('relationship_type_id', 'label=Employer of'); - + $this->select2('relationship_type_id', 'Employer of', TRUE); $this->type('max_related', '5'); $this->click('_qf_MembershipType_upload-bottom'); @@ -292,9 +290,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { $this->select('period_type', 'value=rolling'); - $this->removeSelection('relationship_type_id', 'label=- select -'); - $this->addSelection('relationship_type_id', 'label=Employer of'); - + $this->select2('relationship_type_id', 'Employer of', TRUE); $this->type('max_related', '5'); $this->click('_qf_MembershipType_upload-bottom'); @@ -428,9 +424,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { $this->select('period_type', 'value=rolling'); - $this->removeSelection('relationship_type_id', 'label=- select -'); - $this->addSelection('relationship_type_id', 'label=Employer of'); - + $this->select2('relationship_type_id', 'Employer of', TRUE); $this->type('max_related', '5'); $this->click('_qf_MembershipType_upload-bottom'); -- 2.25.1