diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 5962c43..d4e0cbe 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -21,15 +21,6 @@ use Behat\Gherkin\Node\TableNode; */ class MinkContext extends RawMinkContext implements TranslatableContext { - /** - * 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$/ - */ #[\Behat\Step\Given('/^(?:|I )am on (?:|the )homepage$/')] #[\Behat\Step\When('/^(?:|I )go to (?:|the )homepage$/')] public function iAmOnHomepage() @@ -37,15 +28,6 @@ class MinkContext extends RawMinkContext implements TranslatableContext $this->visitPath('/'); } - /** - * 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[^"]+)"$/ - */ #[\Behat\Step\Given('/^(?:|I )am on "(?P[^"]+)"$/')] #[\Behat\Step\When('/^(?:|I )go to "(?P[^"]+)"$/')] public function visit($page) @@ -53,50 +35,24 @@ class MinkContext extends RawMinkContext implements TranslatableContext $this->visitPath($page); } - /** - * Reloads current page - * Example: When I reload the page - * Example: And I reload the page - * - * @When /^(?:|I )reload the page$/ - */ #[\Behat\Step\When('/^(?:|I )reload the page$/')] public function reload() { $this->getSession()->reload(); } - /** - * Moves backward one page in history - * Example: When I move backward one page - * - * @When /^(?:|I )move backward one page$/ - */ #[\Behat\Step\When('/^(?:|I )move backward one page$/')] public function back() { $this->getSession()->back(); } - /** - * Moves forward one page in history - * Example: And I move forward one page - * - * @When /^(?:|I )move forward one page$/ - */ #[\Behat\Step\When('/^(?:|I )move forward one page$/')] public function forward() { $this->getSession()->forward(); } - /** - * 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