diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 90ea0380..a5bfa30f 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -22,7 +22,10 @@ class MinkContext extends RawMinkContext implements TranslatableContext { /** - * Opens homepage. + * Opens homepage + * Example: Given I am on "/" + * Example: When I go to "/" + * Example: And I go to "/" * * @Given /^(?:|I )am on (?:|the )homepage$/ * @When /^(?:|I )go to (?:|the )homepage$/ @@ -33,7 +36,10 @@ public function iAmOnHomepage() } /** - * Opens specified page. + * Opens specified page + * Example: Given I am on "http://batman.com" + * Example: And I am on "/articles/isBatmanBruceWayne" + * Example: When I go to "/articles/isBatmanBruceWayne" * * @Given /^(?:|I )am on "(?P[^"]+)"$/ * @When /^(?:|I )go to "(?P[^"]+)"$/ @@ -44,7 +50,9 @@ public function visit($page) } /** - * Reloads current page. + * Reloads current page + * Example: When I reload the page + * Example: And I reload the page * * @When /^(?:|I )reload the page$/ */ @@ -54,7 +62,8 @@ public function reload() } /** - * Moves backward one page in history. + * Moves backward one page in history + * Example: When I move backward one page * * @When /^(?:|I )move backward one page$/ */ @@ -65,6 +74,7 @@ public function back() /** * Moves forward one page in history + * Example: And I move forward one page * * @When /^(?:|I )move forward one page$/ */ @@ -74,7 +84,9 @@ public function forward() } /** - * Presses button with specified id|name|title|alt|value. + * Presses button with specified id|name|title|alt|value + * Example: When I press "Log In" + * Example: And I press "Log In" * * @When /^(?:|I )press "(?P