From 59474c0aaaffaf8e5ee942ab463e52b442387030 Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 18 Sep 2013 12:54:27 +0530 Subject: [PATCH] fix webtest for profile group subscription --- .../WebTest/Profile/ProfileGroupSubscriptionTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php b/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php index c91a60a8ad..cebb8df44e 100644 --- a/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php +++ b/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php @@ -54,7 +54,7 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase //Proximity search options $this->click('CIVICRM_QFID_0_14'); - // enable maping for contact + // enable mapping for contact $this->click('is_map'); // include a link in the listings to Edit profile fields @@ -104,9 +104,9 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase $this->assertElementContainsText('crm-profile-block', 'Group(s)', "Groups field was not found."); //fill the subscription form - $radomEmail = substr(sha1(rand()), 0, 7) . "@example.com"; + $randomEmail = substr(sha1(rand()), 0, 7) . "@example.com"; - $this->type("email-Primary", $radomEmail); + $this->type("email-Primary", $randomEmail); // check advisory group ( may be we should create a separate group to test this) $this->click("group_3"); @@ -116,7 +116,7 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase $this->waitForPageToLoad($this->getTimeoutMsec()); // assert for subscription message - $this->waitForText('messages', "Your subscription request has been submitted for group ", + $this->assertElementContainsText('css=div.messages', "Your subscription request has been submitted for", "Subscription message is not shown"); //check if profile is saved -- 2.25.1