diff options
author | Andrew Dolgov <[email protected]> | 2017-04-27 08:47:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-27 08:47:21 +0300 |
commit | 7c437c476caf9345db7f8eb8fb1dee09b1fac233 (patch) | |
tree | 1fc831c895960de1330775f41e74a212c2b18dc5 /tests/functional/PrefsTest.php | |
parent | 4d7e0dae87ff7f2fcaf1e0503af8fe64de8705cc (diff) |
rename functional tests
Diffstat (limited to 'tests/functional/PrefsTest.php')
-rw-r--r-- | tests/functional/PrefsTest.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/functional/PrefsTest.php b/tests/functional/PrefsTest.php new file mode 100644 index 000000000..4f2dea4b7 --- /dev/null +++ b/tests/functional/PrefsTest.php @@ -0,0 +1,42 @@ +<?php +class BasicTest extends PHPUnit_Extensions_Selenium2TestCase { + + public function setUp() { + $this->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(); + + } +} |