Last active
August 29, 2015 13:58
-
-
Save bestform/10243160 to your computer and use it in GitHub Desktop.
login feature
This file contains 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
Given I am on "/" | |
And I fill in "slogin" with "foo" | |
And I fill in "password" with "bar" | |
And I press "loginbutton" |
This file contains 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
<?php | |
/** | |
* @Given /^I am logged in$/ | |
*/ | |
public function iAmLoggedIn() | |
{ | |
$baseurl = $this->getMinkParameter('base_url'); | |
$this->visit($baseurl); | |
$this->fillField("slogin", 'foo'); | |
$this->fillField("password", 'bar'); | |
$this->pressButton('loginbutton'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment