]> git.wh0rd.org - tt-rss.git/commitdiff
test some basic popup dialogs
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 25 Apr 2017 15:55:09 +0000 (18:55 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 25 Apr 2017 15:55:09 +0000 (18:55 +0300)
tests/functional/basic.php

index 8f35692d339194d731de2722908d596550c92680..58041ac32ad9450cc3d80f3dfc3a4589db7d40eb 100644 (file)
@@ -22,6 +22,20 @@ class BasicTest extends PHPUnit_Extensions_Selenium2TestCase {
                $this->byCssSelector('#feedTree')->displayed();
        }
 
+       public function testBasicDialogs() {
+               $this->testLogin();
+
+               $this->execute(["script" => "quickAddFilter()", "args" => []]);
+               $this->byCssSelector("#filterEditDlg")->displayed();
+
+               $this->execute(["script" => "dijit.byId('filterEditDlg').hide();", "args" => []]);
+
+               $this->execute(["script" => "quickAddFeed()", "args" => []]);
+               $this->byCssSelector("#feedAddDlg")->displayed();
+
+               $this->execute(["script" => "dijit.byId('feedAddDlg').hide();", "args" => []]);
+       }
+
        public function testOpenFeed() {
                $this->testLogin();