From c511860d7b0b6a393adda9e739aaa84a59969599 Mon Sep 17 00:00:00 2001 From: Mathias Strasser Date: Thu, 12 May 2016 12:10:48 +0200 Subject: [PATCH 1/2] Replace in with id --- src/Behat/MinkExtension/Context/MinkContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 5ecf617..162d9c3 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -465,7 +465,7 @@ class MinkContext extends RawMinkContext implements TranslatableContext } /** - * Checks, that checkbox with specified in|name|label|value is checked + * Checks, that checkbox with specified id|name|label|value is checked * Example: Then the "remember_me" checkbox should be checked * Example: And the "remember_me" checkbox is checked * @@ -478,7 +478,7 @@ class MinkContext extends RawMinkContext implements TranslatableContext } /** - * Checks, that checkbox with specified in|name|label|value is unchecked + * Checks, that checkbox with specified id|name|label|value is unchecked * Example: Then the "newsletter" checkbox should be unchecked * Example: Then the "newsletter" checkbox should not be checked * Example: And the "newsletter" checkbox is unchecked From 7c3f289a192cf8945160b6f19fa692797cb97770 Mon Sep 17 00:00:00 2001 From: Mathias Strasser Date: Thu, 12 May 2016 12:14:14 +0200 Subject: [PATCH 2/2] Add same snippets for all checkbox definitions --- src/Behat/MinkExtension/Context/MinkContext.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 162d9c3..82ddd3f 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -470,6 +470,7 @@ class MinkContext extends RawMinkContext implements TranslatableContext * Example: And the "remember_me" checkbox is checked * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should be checked$/ + * @Then /^the "(?P(?:[^"]|\\")*)" checkbox is checked$/ * @Then /^the checkbox "(?P(?:[^"]|\\")*)" (?:is|should be) checked$/ */ public function assertCheckboxChecked($checkbox) @@ -483,7 +484,8 @@ class MinkContext extends RawMinkContext implements TranslatableContext * Example: Then the "newsletter" checkbox should not be checked * Example: And the "newsletter" checkbox is unchecked * - * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should not be checked$/ + * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should (?:be unchecked|not be checked)$/ + * @Then /^the "(?P(?:[^"]|\\")*)" checkbox is (?:unchecked|not checked)$/ * @Then /^the checkbox "(?P(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ * @Then /^the checkbox "(?P(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ */