From 70adc8bddc8d9bad8b6efc6ab87a78ff4bde56eb Mon Sep 17 00:00:00 2001 From: "raja.lmsace@gmail.com" Date: Wed, 10 Apr 2024 18:57:19 +0530 Subject: [PATCH] Behat improved for moodle 4.2 --- tests/behat/behat_pulse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/behat/behat_pulse.php b/tests/behat/behat_pulse.php index aed1d0a..87c6c8f 100644 --- a/tests/behat/behat_pulse.php +++ b/tests/behat/behat_pulse.php @@ -236,7 +236,7 @@ public function switch_to_open_window() { public function i_click_on_pulse_editor($editor) { global $CFG; - if ($CFG->branch == "403") { + if ($CFG->branch >= 402) { $this->execute('behat_general::i_click_on_in_the', ['#'.$editor . '_ifr', 'css_element', '#fitem_'.$editor, 'css_element']); } else {