Created
September 2, 2010 14:58
-
-
Save anonymous/562402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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