From 96a121f3dbe3747552c86f0c9e79f8df2ce7d641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 11 May 2023 12:22:58 +0200 Subject: [PATCH] MOBILE-4270 behat: Specify failed field to be set on error --- local_moodleappbehat/tests/behat/behat_app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local_moodleappbehat/tests/behat/behat_app.php b/local_moodleappbehat/tests/behat/behat_app.php index 67776a49f..326986838 100644 --- a/local_moodleappbehat/tests/behat/behat_app.php +++ b/local_moodleappbehat/tests/behat/behat_app.php @@ -765,7 +765,7 @@ class behat_app extends behat_app_helper { $result = $this->runtime_js("setField('$field', '$value')"); if ($result !== 'OK') { - throw new DriverException('Error setting field - ' . $result); + throw new DriverException('Error setting field "' . $field . '" - ' . $result); } return true;