Skip to content

Instantly share code, notes, and snippets.

@bestform
Last active August 29, 2015 13:58
Show Gist options
  • Save bestform/10243160 to your computer and use it in GitHub Desktop.
Save bestform/10243160 to your computer and use it in GitHub Desktop.
login feature
Given I am on "/"
And I fill in "slogin" with "foo"
And I fill in "password" with "bar"
And I press "loginbutton"
<?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