From 140bd7b3ca00683de413d854948df6311ad33d24 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 19 Oct 2015 16:46:42 +0800 Subject: [PATCH] MDL-48117 behat: Use form field to check checkbox On Mac-Chrome click checkbox is not generating proper events and hence failing. Use behat_form_checkbox to ensure checkbox is checked --- .../tests/behat/restrict_section_availability.feature | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/completion/tests/behat/restrict_section_availability.feature b/completion/tests/behat/restrict_section_availability.feature index 6bf71235ee9..f725845b4d3 100644 --- a/completion/tests/behat/restrict_section_availability.feature +++ b/completion/tests/behat/restrict_section_availability.feature @@ -71,10 +71,10 @@ Feature: Restrict sections availability through completion or grade conditions And I expand all fieldsets And I click on "Add restriction..." "button" And I click on "Grade" "button" in the "Add restriction..." "dialogue" - And I click on "min" "checkbox" And I set the following fields to these values: - | id | Grade assignment | - | minval | 20 | + | id | Grade assignment | + | min | 1 | + | minval | 20 | And I press "Save changes" And I log out When I log in as "student1"