From 8466690851f0774facc6c8e443a0df2610c96ce5 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 31 Jan 2013 04:13:28 -0500
Subject: [PATCH] Set root URL to our index.html, for better performance See https://github.com/sebastianbergmann/phpunit-selenium/issues/217

---
 tests/Selenium/bootstrap.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tests/Selenium/bootstrap.php b/tests/Selenium/bootstrap.php
index 0f7eed0..6611e8f 100644
--- a/tests/Selenium/bootstrap.php
+++ b/tests/Selenium/bootstrap.php
@@ -50,6 +50,7 @@
 
 // @TODO: remove user record from DB before running tests
 // @TODO: make sure mailbox has some content (always the same) or is empty
+// @TODO: plugins: enable all?
 
 /**
  * Base class for all tests in this directory
@@ -60,7 +61,10 @@
     {
 //        $this->rc = rcube::get_instance();
         $this->setBrowser(TESTS_BROWSER);
-        $this->setBrowserUrl(TESTS_URL);
+
+        // Set root to our index.html, for better performance
+        // See https://github.com/sebastianbergmann/phpunit-selenium/issues/217
+        $this->setBrowserUrl(TESTS_URL . '/tests/Selenium');
     }
 
     protected function login()

--
Gitblit v1.9.1