X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=tests%2Ffunctional%2Fprefs.php;fp=tests%2Ffunctional%2Fprefs.php;h=4f2dea4b754b27852e3d3124c9388233cd2b8725;hb=b95e694c7f95be3173373b5acb2d210e661faaae;hp=0000000000000000000000000000000000000000;hpb=1bf13f9ec7455558f777ab12315a536bf5ba79bc;p=tt-rss.git diff --git a/tests/functional/prefs.php b/tests/functional/prefs.php new file mode 100644 index 00000000..4f2dea4b --- /dev/null +++ b/tests/functional/prefs.php @@ -0,0 +1,42 @@ +setHost('localhost'); + $this->setPort(4444); + $this->setBrowserUrl('http://localhost/tt-rss/'); + $this->setBrowser('firefox'); + } + + public function setUpPage() { + $this->timeouts()->implicitWait(5000); + } + + public function testLogin() { + $this->url('/prefs.php'); + + $this->byName("login")->value('admin'); + $this->byName("password")->value('password'); + $this->byCssSelector('#dijit_form_Button_0_label')->click(); + + $this->byCssSelector('#ttrssPrefs')->displayed(); + } + + public function testTabs() { + + $this->byCssSelector("#dijit_layout_AccordionPane_1_wrapper")->displayed(); + + /* feeds */ + $this->execute(["script" => "selectTab('feedConfig');", "args" => []]); + $this->byCssSelector("div.dijitTreeContainer > div.dijitTreeNode")->displayed(); + + /* filters */ + $this->execute(["script" => "selectTab('filterConfig');", "args" => []]); + $this->byCssSelector("div.dijitTreeContainer > div.dijitTreeNode")->displayed(); + + /* filters */ + $this->execute(["script" => "selectTab('labelConfig');", "args" => []]); + $this->byCssSelector("div.dijitTreeContainer > div.dijitTreeNode")->displayed(); + + } +}