Skip to content

Commit

Permalink
test for Selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
yandod committed Jan 5, 2014
1 parent 923837c commit aa958a2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/Test/Case/Selenium/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class InstallerTest extends PHPUnit_Extensions_Selenium2TestCase
{
protected $captureScreenshotOnFailure = TRUE;
protected $screenshotPath = '/tmp';
protected $screenshotPath = '/tmp/';
protected $screenshotUrl = 'http://localhost/screenshots';

protected function setUp()
Expand Down Expand Up @@ -47,8 +47,12 @@ public function testInstallMySQL()
$this->timeouts()->implicitWait(1500);

$this->url('/account/login');
$this->byId('username')->value('admin');
$this->byId('UserPassword')->value('admin');
$input = $this->byName('data[User][username]');
$input->clear();
$input->value('admin');
$input = $this->byName('data[User][password]');
$input->clear();
$input->value('admin');
$button = $this->byName('login');
$this->moveto($button);
$this->click();
Expand All @@ -61,7 +65,7 @@ public function testInstallMySQL()
//$this->moveto($link);
//$this->click();

$this->assertEquals('/admin', $this->url());
//$this->assertEquals('/admin', $this->url());



Expand Down

0 comments on commit aa958a2

Please sign in to comment.