From 8466690851f0774facc6c8e443a0df2610c96ce5 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 31 Jan 2013 10:13:28 +0100 Subject: 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 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/Selenium/bootstrap.php b/tests/Selenium/bootstrap.php index 0f7eed0d9..6611e8feb 100644 --- a/tests/Selenium/bootstrap.php +++ b/tests/Selenium/bootstrap.php @@ -50,6 +50,7 @@ PHPUnit_Extensions_Selenium2TestCase::shareSession(true); // @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 @@ class Selenium_Test extends PHPUnit_Extensions_Selenium2TestCase { // $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() -- cgit v1.2.3