Limekiller / moodle-block_openai_chat

An AI chat block for Moodle, powered by GPT
https://moodle.org/plugins/block_openai_chat
GNU General Public License v3.0
30 stars 20 forks source link

Core Behat test is failing on `main` #70

Open Julian-Tovar opened 3 weeks ago

Julian-Tovar commented 3 weeks ago

Good day team,

I'm not sure of how does the CI/CD for this project work, because I'm getting a failure on a Behat testcase from the Core suite, but maybe this testcase passes successfully for you?

I'm talking about the testcase in file 'customfield/tests/behat/edit_categories.feature' which makes part of the @core tests as you can see here: https://github.com/moodle/moodle/blob/main/customfield/tests/behat/edit_categories.feature

This test fails on my system because of these steps:

And I navigate to "Reports > Logs" in site administration
And I press "Get these logs"

The "Reports > Logs" where the navigation takes place, is actually the OpenAI Chat Logs page.

Could you please run these tests from that .feature file, to see if they pass on main?

Thank you.

Julian-Tovar commented 3 weeks ago

I have fixed this issue with this patch, for your reference: 0001-INT-20392-block_openai_chat-Added-validation-to-unli.patch

I still think this plugin isn't really at fault. The design of that Behat test should allow the installation of plugins with reports containing the word "Logs", so please consider creating an MDL for that issue on https://tracker.moodle.org/ Thank you.