Hi, I'm writing Behat tests for our plugins. Everything works very well but I'm having some trouble testing behaviours where I expect to see an exception. The problem is that the "look_for_exceptions()" function is called after each step and if an exception occurs, the step fails. But in my case I expect to see an exception. This behaviour has been already discussed last year: https://moodle.org/mod/forum/discuss.php?d=392187
Unfortunately there was no solution atm. Only Andrew Nicols suggested a possible solution but it doesn't work because the step before the "I should see exception"-step fails. So, when I navigate to the page, the navigation step already fails because an exception has been detected.
Sorry for my ignorance, but are there any updates about this "problem"? Anyone can suggest a solution? The idea of automatically calling "look_for_exceptions" is awesome but the result is that I cannot completely test the options of our plugins where I expect an exception.
So any suggestions are extremly welcome 🙂