]> git.wh0rd.org - tt-rss.git/blame - tests/functional/basic.php
add some basic prefs UI tests
[tt-rss.git] / tests / functional / basic.php
CommitLineData
94eedc29
AD
1<?php
2class BasicTest extends PHPUnit_Extensions_Selenium2TestCase {
3
4 public function setUp() {
5 $this->setHost('localhost');
6 $this->setPort(4444);
7 $this->setBrowserUrl('http://localhost/tt-rss/');
8 $this->setBrowser('firefox');
9 }
10
11 public function setUpPage() {
b95e694c 12 $this->timeouts()->implicitWait(5000);
94eedc29
AD
13 }
14
15 public function testLogin() {
16 $this->url('/index.php');
17
18 $this->byName("login")->value('admin');
19 $this->byName("password")->value('password');
20 $this->byCssSelector('#dijit_form_Button_0_label')->click();
21
22 $this->byCssSelector('#feedTree')->displayed();
23 }
24
1bf13f9e
AD
25 public function testOpenFeed() {
26 $this->testLogin();
27
28 $this->byCssSelector('#dijit__TreeNode_3')->click();
29
30 $this->byCssSelector('#RROW-1 > div.cdmHeader')->displayed();
31 }
94eedc29 32}