MDL-66181 behat: You check checkboxes, not click them

This commit is contained in:
Andrew Nicols
2019-09-02 05:06:37 +02:00
committed by Jenkins
parent 08e8818abe
commit f63284d2eb
+2 -2
View File
@@ -234,11 +234,11 @@ class behat_permissions extends behat_base {
if ($allowed == 'Assignable') {
if (!$node->isChecked()) {
$node->click();
$node->check();
}
} else if ($allowed == 'Not assignable') {
if ($node->isChecked()) {
$node->click();
$node->uncheck();
}
} else {
throw new ExpectationException(