by kssundar: Added few more possible regular expression to check whether a checkbox is checked.

This commit is contained in:
ksbalajisundar
2012-12-11 12:52:50 +05:30
parent 064cb78ff1
commit de37a1a1de

View File

@@ -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>(?:[^"]|\\")*)" checkbox should be checked$/
* @Then /^I (?:|should )see the checkbox "(?P<checkbox>(?:[^"]|\\")*)" checked$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?: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>(?:[^"]|\\")*)" checkbox should not be checked$/
* @Then /^I (?:|should )see the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?:is not checked|is unchecked)$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" is (?:unchecked|not checked)$/
*/
public function assertCheckboxNotChecked($checkbox)
{