From 837391417507f955c7a550223a362d43861d98cc Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 1 Oct 2013 20:26:13 +0530 Subject: [PATCH] Webtest Fixes --- tests/phpunit/WebTest/Campaign/MailingTest.php | 2 +- tests/phpunit/WebTest/Event/MultiprofileEventTest.php | 6 +++--- tests/phpunit/WebTest/Mailing/MailingTest.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/WebTest/Campaign/MailingTest.php b/tests/phpunit/WebTest/Campaign/MailingTest.php index 6a81ee3897..c4bea39097 100644 --- a/tests/phpunit/WebTest/Campaign/MailingTest.php +++ b/tests/phpunit/WebTest/Campaign/MailingTest.php @@ -209,7 +209,7 @@ class WebTest_Campaign_MailingTest extends CiviSeleniumTestCase { //----------end New Mailing------------- //check redirected page to Scheduled and Sent Mailings and verify for mailing name - $this->assertElementContainsText('page-title', "Scheduled and Sent Mailings"); + $this->assertElementContainsText('page-title', "Find Mailings"); $this->assertElementContainsText('Search', "Mailing $mailingName Webtest"); //--------- mail delivery verification--------- diff --git a/tests/phpunit/WebTest/Event/MultiprofileEventTest.php b/tests/phpunit/WebTest/Event/MultiprofileEventTest.php index e7418c3ff8..cb7ecd3f95 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', + 'gender_id' => 'gender_id', ); $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 value=2"); + $this->click("name=gender_id 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 value=2"); + $this->click("name=gender_id value=2"); $this->select("participant_role", "value=2"); $this->click("_qf_Register_upload-bottom"); diff --git a/tests/phpunit/WebTest/Mailing/MailingTest.php b/tests/phpunit/WebTest/Mailing/MailingTest.php index c42308915f..b570898e64 100644 --- a/tests/phpunit/WebTest/Mailing/MailingTest.php +++ b/tests/phpunit/WebTest/Mailing/MailingTest.php @@ -167,7 +167,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase { //----------end New Mailing------------- //check redirected page to Scheduled and Sent Mailings and verify for mailing name - $this->assertElementContainsText('page-title', "Scheduled and Sent Mailings"); + $this->assertElementContainsText('page-title', "Find Mailings"); $this->assertElementContainsText("xpath=//table[@class='selector']/tbody//tr//td", "Mailing $mailingName Webtest"); //--------- mail delivery verification--------- -- 2.25.1