diff options
author | Andrew Dolgov <[email protected]> | 2017-04-25 13:44:41 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-25 13:44:41 +0300 |
commit | 94eedc29c01a30a32cf10e14fd0d0a039504ca8a (patch) | |
tree | acc5e66d941ec64e0cf67dfce199bdeea5b0379f /tests/functional | |
parent | 3c111597768a13ae05463b044f6e4d6dc18d8be0 (diff) |
add initial gitlab-ci and selenium stuff
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/basic.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/functional/basic.php b/tests/functional/basic.php new file mode 100644 index 000000000..38c25779e --- /dev/null +++ b/tests/functional/basic.php @@ -0,0 +1,25 @@ +<?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(10000); + } + + 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(); + } + +} |