ttrss/tests/functional/basic.php

26 lines
587 B
PHP
Raw Normal View History

<?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();
}
}