Webtest Fixes
authormonishdeb <monish.deb@webaccess.co.in>
Tue, 1 Oct 2013 14:56:13 +0000 (20:26 +0530)
committermonishdeb <monish.deb@webaccess.co.in>
Tue, 1 Oct 2013 14:56:13 +0000 (20:26 +0530)
tests/phpunit/WebTest/Campaign/MailingTest.php
tests/phpunit/WebTest/Event/MultiprofileEventTest.php
tests/phpunit/WebTest/Mailing/MailingTest.php

index 6a81ee3897edb12dd7cd40ddd689361834e1f9e6..c4bea39097ac88d8a78c4ae08d3092931beddd58 100644 (file)
@@ -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---------
index e7418c3ff8b8462c0a8342c3ab50e7c2d0a8f5ac..cb7ecd3f957e302e7f26cd1867fda254c997a5a9 100644 (file)
@@ -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");
index c42308915f2ed429299c1749aee56143c61db94b..b570898e64abd2e9fd66765d06da6a299b41204a 100644 (file)
@@ -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---------