From: Andrew Dolgov Date: Tue, 25 Apr 2017 15:55:09 +0000 (+0300) Subject: test some basic popup dialogs X-Git-Tag: 17.12~239 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f78e10d14c2cac5e0940678fbc475886447eef2a;p=tt-rss.git test some basic popup dialogs --- diff --git a/tests/functional/basic.php b/tests/functional/basic.php index 8f35692d..58041ac3 100644 --- a/tests/functional/basic.php +++ b/tests/functional/basic.php @@ -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();