Merge pull request #57 from kssundar/master
Few more possible regular expressions to check checkbox is checked
This commit is contained in:
@@ -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>(?:[^"]|\\")*)" checkbox should be checked$/
|
||||
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?: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>(?:[^"]|\\")*)" checkbox should not be checked$/
|
||||
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/
|
||||
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" is (?:unchecked|not checked)$/
|
||||
*/
|
||||
public function assertCheckboxNotChecked($checkbox)
|
||||
{
|
||||
|
||||
@@ -448,6 +448,7 @@ trait MinkDictionary
|
||||
* Checks, that checkbox with specified in|name|label|value is checked.
|
||||
*
|
||||
* @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/
|
||||
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?: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>(?:[^"]|\\")*)" checkbox should not be checked$/
|
||||
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/
|
||||
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" is (?:unchecked|not checked)$/
|
||||
*/
|
||||
public function assertCheckboxNotChecked($checkbox)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user