From 07c2881b18ad31af37cf6e0cfa27b120fc4b66f2 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 26 Feb 2015 23:12:23 +0530 Subject: [PATCH] -- CRM-15989, removed white spaces ---------------------------------------- * CRM-15989: Merge Show Deceased Contact extension into core https://issues.civicrm.org/jira/browse/CRM-15989 --- tests/phpunit/WebTest/Contact/AddTest.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/phpunit/WebTest/Contact/AddTest.php b/tests/phpunit/WebTest/Contact/AddTest.php index c3470ef344..95c2ae424a 100644 --- a/tests/phpunit/WebTest/Contact/AddTest.php +++ b/tests/phpunit/WebTest/Contact/AddTest.php @@ -502,25 +502,19 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase { $this->webtestLogin(); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->openCiviPage('contact/add', 'reset=1&ct=Individual'); - //contact details section //fill in first name $fname = substr(sha1(rand()), 0, 7) . "John"; $lname = substr(sha1(rand()), 0, 7) . "Smith"; $this->type("first_name", $fname); - //fill in last name $this->type("last_name", $lname); - //fill in email $this->type("email_1_email", substr(sha1(rand()), 0, 7) . "john@gmail.com"); - // Clicking save. $this->click("_qf_Contact_upload_view"); - $this->waitForPageToLoad($this->getTimeoutMsec()); $this->waitForText('crm-notification-container', "Contact Saved"); - //Edit Contact $cid = $this->urlArg('cid'); $dname = $fname . ' ' . $lname . ' (deceased)'; @@ -533,7 +527,6 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase { $this->click('demographics'); $this->waitForElementPresent('is_deceased'); $this->click('is_deceased'); - // Click on Save $this->click('_qf_Contact_upload_view-bottom'); $this->waitForPageToLoad($this->getTimeoutMsec()); @@ -544,7 +537,6 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase { $this->assertTrue(($this->getText('css=div.crm-summary-display_name') != $dname)); } } - foreach (array('', 'deceased') as $val) { $this->mouseDown('crm-demographic-content'); $this->mouseUp('crm-demographic-content'); @@ -552,7 +544,6 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase { $this->click('is_deceased'); $this->click("css=#crm-demographic-content input.crm-form-submit"); $this->waitForElementPresent("css=#crm-demographic-content > .crm-inline-block-content"); - if (!$val) { $this->assertElementContainsText('css=div.crm-summary-display_name', $dname); } -- 2.25.1