From 8bed5e0151eb375e2d2dc91e4e6c6d5aa62daa5c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 19 Jul 2015 05:06:48 -0400
Subject: [PATCH] Fix regression where compose editor mode was set incorrectly

---
 tests/Selenium/bootstrap.php |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/Selenium/bootstrap.php b/tests/Selenium/bootstrap.php
index 8c57571..dc4897d 100644
--- a/tests/Selenium/bootstrap.php
+++ b/tests/Selenium/bootstrap.php
@@ -78,9 +78,9 @@
             system(sprintf('cat %s %s | mysql -h %s -u %s --password=%s %s',
                 realpath(INSTALL_PATH . '/SQL/mysql.initial.sql'),
                 realpath(TESTS_DIR . 'Selenium/data/mysql.sql'),
-                escapeshellarg($dsn['host']),
-                escapeshellarg($dsn['user']),
-                escapeshellarg($dsn['pass']),
+                escapeshellarg($dsn['hostspec']),
+                escapeshellarg($dsn['username']),
+                escapeshellarg($dsn['password']),
                 escapeshellarg($dsn['database'])
             ));
         }
@@ -337,6 +337,11 @@
         return $response;
     }
 
+    protected function getText($element)
+    {
+        return $element->text() ?: $element->attribute('textContent');
+    }
+
     protected function assertHasClass($classname, $element)
     {
         $this->assertContains($classname, $element->attribute('class'));

--
Gitblit v1.9.1