X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FReport%2FLoggingReportTest.php;h=4e736a347fe6a525e5c844c09329a05eda1a0a87;hb=b9715b8a5417dd809ffd828da5d9ad4d01373f3b;hp=a505ff02d05373c9493345617657df26a83444d8;hpb=0bd37c069745f246ec299e7412b597722112fe40;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Report/LoggingReportTest.php b/tests/phpunit/WebTest/Report/LoggingReportTest.php index a505ff02d0..4e736a347f 100644 --- a/tests/phpunit/WebTest/Report/LoggingReportTest.php +++ b/tests/phpunit/WebTest/Report/LoggingReportTest.php @@ -33,16 +33,6 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase { } function testLoggingReport() { - // This is the path where our testing install resides. - // The rest of URL is defined in CiviSeleniumTestCase base class, in - // class attributes. - $this->open($this->sboxPath); - - // Logging in. Remember to wait for page to load. In most cases, - // you can rely on 30000 as the value that allows your test to pass, however, - // sometimes your test might fail because of this. In such cases, it's better to pick one element - // somewhere at the end of page and use waitForElementPresent on it - this assures you, that whole - // page contents loaded and you can continue your test execution. $this->webtestLogin(); //enable the logging @@ -52,16 +42,8 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase { $this->waitForTextPresent("Changes Saved"); //enable CiviCase component - $this->openCiviPage('admin/setting/component', 'reset=1', '_qf_Component_next-bottom'); - $enabledComponents = $this->getSelectOptions("enableComponents-t"); - if (!in_array("CiviCase", $enabledComponents)) { - $this->addSelection("enableComponents-f", "label=CiviCase"); - $this->click("//option[@value='CiviCase']"); - $this->click("add"); - $this->click("_qf_Component_next-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertElementContainsText('crm-notification-container', "Changes Saved"); - } + $this->enableComponents("CiviCase"); + //add new contact $orginalFirstName = $firstName = 'Anthony' . substr(sha1(rand()), 0, 7); $lastName = 'Anderson' . substr(sha1(rand()), 0, 7); @@ -330,4 +312,4 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase { $this->waitForPageToLoad($this->getTimeoutMsec()); } } -} \ No newline at end of file +}