mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 11:21:29 +00:00
add initial gitlab-ci and selenium stuff
This commit is contained in:
25
tests/functional/basic.php
Normal file
25
tests/functional/basic.php
Normal file
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user