From 94eedc29c01a30a32cf10e14fd0d0a039504ca8a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Apr 2017 13:44:41 +0300 Subject: add initial gitlab-ci and selenium stuff --- tests/functional/basic.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/functional/basic.php (limited to 'tests') 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 @@ +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(); + } + +} -- cgit v1.2.3