From de37a1a1deafaae859943a728fe2b24496321d6b Mon Sep 17 00:00:00 2001 From: ksbalajisundar Date: Tue, 11 Dec 2012 12:52:50 +0530 Subject: [PATCH] by kssundar: Added few more possible regular expression to check whether a checkbox is checked. --- src/Behat/MinkExtension/Context/MinkContext.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index ea8bfc1..f8c5f43 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -371,6 +371,8 @@ 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 /^I (?:|should )see the checkbox "(?P(?:[^"]|\\")*)" checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" (?:is|should be) checked$/ */ public function assertCheckboxChecked($checkbox) { @@ -381,6 +383,9 @@ 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 /^I (?:|should )see the checkbox "(?P(?:[^"]|\\")*)" (?:is not checked|is unchecked)$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ */ public function assertCheckboxNotChecked($checkbox) {