2017-04-25 10:44:41 +00:00
|
|
|
<?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() {
|
2017-04-25 15:45:11 +00:00
|
|
|
$this->timeouts()->implicitWait(5000);
|
2017-04-25 10:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2017-04-25 11:42:21 +00:00
|
|
|
public function testOpenFeed() {
|
|
|
|
$this->testLogin();
|
|
|
|
|
|
|
|
$this->byCssSelector('#dijit__TreeNode_3')->click();
|
|
|
|
|
|
|
|
$this->byCssSelector('#RROW-1 > div.cdmHeader')->displayed();
|
|
|
|
}
|
2017-04-25 10:44:41 +00:00
|
|
|
}
|