summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 15:05:22 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 15:05:22 +0300
commit50a4c2d7236841f5bf23ab4c47529fef3b1dda2e (patch)
tree074cf085e8fe34991e5b84deefdb66ad5b0354f8 /tests
parentf26d404890a55a34ed5779b6f36e949d38705e8d (diff)
remove selenium stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/BasicTest.php46
-rw-r--r--tests/functional/PrefsTest.php42
2 files changed, 0 insertions, 88 deletions
diff --git a/tests/functional/BasicTest.php b/tests/functional/BasicTest.php
deleted file mode 100644
index eba8a2c89..000000000
--- a/tests/functional/BasicTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?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('/index.php');
-
- $this->byName("login")->value('admin');
- $this->byName("password")->value('password');
- $this->byCssSelector('#dijit_form_Button_0_label')->click();
-
- $this->byCssSelector('#feedTree')->displayed();
- }
-
- public function testBasicDialogs() {
- $this->testLogin();
-
- $this->execute(["script" => "Filters.quickAddFilter()", "args" => []]);
- $this->byCssSelector("#filterEditDlg")->displayed();
-
- $this->execute(["script" => "dijit.byId('filterEditDlg').hide();", "args" => []]);
-
- $this->execute(["script" => "CommonDialog.quickAddFeed()", "args" => []]);
- $this->byCssSelector("#feedAddDlg")->displayed();
-
- $this->execute(["script" => "dijit.byId('feedAddDlg').hide();", "args" => []]);
- }
-
- public function testOpenFeed() {
- $this->testLogin();
-
- $this->byCssSelector('#dijit__TreeNode_3')->click();
-
- $this->byCssSelector('#RROW-1 > .header')->displayed();
- }
-}
diff --git a/tests/functional/PrefsTest.php b/tests/functional/PrefsTest.php
deleted file mode 100644
index 4f2dea4b7..000000000
--- a/tests/functional/PrefsTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?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();
-
- }
-}