Global webtest cleanup
[civicrm-core.git] / tests / phpunit / WebTest / Financial / FinancialBatchExport.php
index f4f695368c47864f2b77888b62d9c59770a4a91f..3886b2354a6b45d795b276a224bdef3acc85025f 100644 (file)
@@ -39,10 +39,8 @@ class WebTest_Financial_FinancialBatchExport extends CiviSeleniumTestCase {
     $this->open($this->sboxPath);\r
 \r
     // Log in using webtestLogin() method\r
-    $this->webtestLogin(TRUE);\r
-    $this->open($this->sboxPath . 'civicrm/financial/batch?reset=1&action=add');\r
-    $this->waitForPageToLoad($this->getTimeoutMsec());\r
-    $this->waitForElementPresent('_qf_FinancialBatch_next-botttom');\r
+    $this->webtestLogin('admin');\r
+    $this->openCiviPage("financial/batch", "reset=1&action=add", '_qf_FinancialBatch_next-botttom');\r
     $setTitle = 'Batch ' . substr(sha1(rand()), 0, 7) . date('Y-m-d');\r
     $setDescription  = 'Test Batch Creation';\r
     $setPaymentInstrument = 'Credit Card';\r