diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 947799e..fa356a2 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -382,6 +382,7 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface * Checks, that checkbox with specified in|name|label|value is checked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should be checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" (?:is|should be) checked$/ */ public function assertCheckboxChecked($checkbox) { @@ -392,6 +393,8 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface * Checks, that checkbox with specified in|name|label|value is unchecked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should not be checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ */ public function assertCheckboxNotChecked($checkbox) { diff --git a/src/Behat/MinkExtension/Context/MinkDictionary.php b/src/Behat/MinkExtension/Context/MinkDictionary.php index d37d3e4..94a17f1 100644 --- a/src/Behat/MinkExtension/Context/MinkDictionary.php +++ b/src/Behat/MinkExtension/Context/MinkDictionary.php @@ -448,6 +448,7 @@ trait MinkDictionary * Checks, that checkbox with specified in|name|label|value is checked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should be checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" (?:is|should be) checked$/ */ public function assertCheckboxChecked($checkbox) { @@ -458,6 +459,8 @@ trait MinkDictionary * Checks, that checkbox with specified in|name|label|value is unchecked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should not be checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ */ public function assertCheckboxNotChecked($checkbox) {