aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2014-08-10 00:44:00 +0200
committerDhruv <dhruv.goel92@gmail.com>2014-09-21 13:53:08 +0530
commitf21ef60175ce5a5744231410c18f1c4a701a17ab (patch)
tree4d832962279b9053cab908484b333f7860d9ac1a /tests/ui
parent77f8bb48fedf0e1afad3a98655aed94c21ae863c (diff)
downloadforums-f21ef60175ce5a5744231410c18f1c4a701a17ab.tar
forums-f21ef60175ce5a5744231410c18f1c4a701a17ab.tar.gz
forums-f21ef60175ce5a5744231410c18f1c4a701a17ab.tar.bz2
forums-f21ef60175ce5a5744231410c18f1c4a701a17ab.tar.xz
forums-f21ef60175ce5a5744231410c18f1c4a701a17ab.zip
[ticket/12962] Add quick-links JS test
PHPBB3-12962
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/quick_links_test.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/quick_links_test.php b/tests/ui/quick_links_test.php
new file mode 100644
index 0000000000..5bddb44a8b
--- /dev/null
+++ b/tests/ui/quick_links_test.php
@@ -0,0 +1,27 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+/**
+* @group ui
+*/
+class quick_links_test extends phpbb_ui_test_case
+{
+
+ public function test_quick_links()
+ {
+ $this->visit('index.php');
+ $this->assertEmpty(self::find_element('className', 'dropdown')->getText());
+ self::find_element('className', 'dropdown-toggle')->click();
+ $this->assertNotNull(self::find_element('className', 'dropdown')->getText());
+ }
+}