From d97b92de7a42e1b16eb96604050a98ec4a2a6f72 Mon Sep 17 00:00:00 2001 From: Sudha Bisht Date: Wed, 18 Nov 2015 19:08:30 +0530 Subject: [PATCH] Webtest Fix --- .../phpunit/WebTest/Contact/SearchBuilderTest.php | 14 +++++++------- tests/phpunit/WebTest/Event/TellAFriendTest.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/WebTest/Contact/SearchBuilderTest.php b/tests/phpunit/WebTest/Contact/SearchBuilderTest.php index 075f0e18a6..49bafb4eea 100644 --- a/tests/phpunit/WebTest/Contact/SearchBuilderTest.php +++ b/tests/phpunit/WebTest/Contact/SearchBuilderTest.php @@ -203,13 +203,13 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase { $firstName8 = "abcc" . substr(sha1(rand()), 0, 7); $this->_createContact('Individual', $firstName8, "$firstName8@advsearch.co.in", NULL); - $this->_searchBuilder('Note(s): Body and Subject', "this is notes by $firstName8", $firstName8, 'LIKE'); - $this->_searchBuilder('Note(s): Subject Only', "this is subject by $firstName8", $firstName8, 'LIKE'); - $this->_searchBuilder('Note(s): Body Only', "this is notes by $firstName8", $firstName8, 'LIKE'); - $this->_advancedSearch("this is notes by $firstName8", $firstName8, NULL, NULL, 'note_body', 'notes'); - $this->_advancedSearch("this is subject by $firstName8", $firstName8, NULL, NULL, 'note_subject', 'notes'); - $this->_advancedSearch("this is notes by $firstName8", $firstName8, NULL, NULL, 'note_both', 'notes'); - $this->_advancedSearch("this is notes by $firstName8", $firstName8, NULL, NULL, 'note_both', 'notes'); + $this->_searchBuilder('Note(s): Body and Subject', "this is notes by $firstName8 adv$firstName8", $firstName8, 'LIKE'); + $this->_searchBuilder('Note(s): Subject Only', "this is subject by $firstName8 adv$firstName8", $firstName8, 'LIKE'); + $this->_searchBuilder('Note(s): Body Only', "this is notes by $firstName8 adv$firstName8", $firstName8, 'LIKE'); + $this->_advancedSearch("this is notes by $firstName8 adv$firstName8", $firstName8, NULL, NULL, 'note_body', 'notes'); + $this->_advancedSearch("this is subject by $firstName8 adv$firstName8", $firstName8, NULL, NULL, 'note_subject', 'notes'); + $this->_advancedSearch("this is notes by $firstName8 adv$firstName8", $firstName8, NULL, NULL, 'note_both', 'notes'); + $this->_advancedSearch("this is notes by $firstName8 adv$firstName8", $firstName8, NULL, NULL, 'note_both', 'notes'); } /** diff --git a/tests/phpunit/WebTest/Event/TellAFriendTest.php b/tests/phpunit/WebTest/Event/TellAFriendTest.php index 71854be7c9..8f4899b244 100644 --- a/tests/phpunit/WebTest/Event/TellAFriendTest.php +++ b/tests/phpunit/WebTest/Event/TellAFriendTest.php @@ -239,7 +239,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase { } $this->click("xpath=//div[@id='registration_screen']/table/tbody/tr[1]/td[2]/div[@class='replace-plain']"); - $this->fillRichTextField("cke_wysiwyg_frame", $registerIntro); + $this->fillRichTextField("intro_text", $registerIntro); // enable confirmation email $this->click('xpath=//fieldset[@id="mail"]/div/table/tbody/tr/td[2]/label[contains(text(), "Yes")]'); -- 2.25.1