Skip to content

Instantly share code, notes, and snippets.

Created September 2, 2010 14:58
Show Gist options
  • Save anonymous/562402 to your computer and use it in GitHub Desktop.
Save anonymous/562402 to your computer and use it in GitHub Desktop.
class dashboardTestCase extends sfBasePhpunitSeleniumTestCase {
public function _start() {
$this->start();
}
public function testLogin() {
$this->open("");
try {
$this->assertTrue($this->isTextPresent("Login"));
} catch (PHPUnit_Framework_AssertionFailedError $e) {
array_push($this->verificationErrors, $e->toString());
}
$this->type("signin_username", "admin");
$this->type("signin_password", "password");
$this->click("//input[@value='sign in']");
$this->waitForPageToLoad("30000");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment