From 91c0f7ec8f5954129909284cf8e69e8f037911ab Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Fri, 30 Aug 2013 19:33:39 +0530 Subject: [PATCH] -- webtest fix --- .../WebTest/Contribute/ContributionPageAddTest.php | 8 ++++---- tests/phpunit/WebTest/Event/MultiprofileEventTest.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php b/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php index ba477ce3a3..1466e65a6c 100644 --- a/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php +++ b/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php @@ -382,10 +382,10 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { $this->click('_qf_SearchContribution_refresh'); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->isElementPresent("xpath=//table[@id='option11_wrapper']/tbody/tr/td/strong[text()='$pageTitle']"); - $this->waitForElementPresent("xpath=//table[@id='option11']/tbody/tr/td[4]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']"); - $this->click("xpath=//table[@id='option11']/tbody/tr/td[4]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']"); - $this->waitForElementPresent("xpath=//table[@id='option11']/tbody/tr/td[4]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']/ul[@class='panel']/li[8]/a[@title='Premiums']"); - $this->click("xpath=//table[@id='option11']/tbody/tr/td[4]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']/ul[@class='panel']/li[8]/a[@title='Premiums']"); + $this->waitForElementPresent("xpath=//table[@id='option11']/tbody/tr/td[5]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']"); + $this->click("xpath=//table[@id='option11']/tbody/tr/td[5]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']"); + $this->waitForElementPresent("xpath=//table[@id='option11']/tbody/tr/td[5]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']/ul[@class='panel']/li[8]/a[@title='Premiums']"); + $this->click("xpath=//table[@id='option11']/tbody/tr/td[5]/div[@class='crm-contribution-page-configure-actions']/span[text()='Configure']/ul[@class='panel']/li[8]/a[@title='Premiums']"); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->waitForElementPresent('premiums_active'); $this->waitForElementPresent('_qf_Premium_cancel-bottom'); diff --git a/tests/phpunit/WebTest/Event/MultiprofileEventTest.php b/tests/phpunit/WebTest/Event/MultiprofileEventTest.php index 0b5b9af2c6..e7418c3ff8 100644 --- a/tests/phpunit/WebTest/Event/MultiprofileEventTest.php +++ b/tests/phpunit/WebTest/Event/MultiprofileEventTest.php @@ -364,7 +364,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { $profilefield = array( 'middle_name' => 'middle_name', - 'gender' => 'gender_id', + 'gender' => 'gender', ); $location = 0; $type = "Individual"; @@ -627,7 +627,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { $this->type("custom_" . $customId[2], "lname_custom1"); $this->type("middle_name", "xyz"); - $this->click("name=gender_id value=2"); + $this->click("name=gender value=2"); $this->select("participant_role", "value=2"); $this->click("_qf_Register_upload-bottom"); @@ -705,7 +705,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { $this->type("custom_" . $customId[2], "lname_custom1"); $this->type("middle_name", "xyz"); - $this->click("name=gender_id value=2"); + $this->click("name=gender value=2"); $this->select("participant_role", "value=2"); $this->click("_qf_Register_upload-bottom"); -- 2.25.1