Wunderbyte-GmbH / moodle-mod_booking

Moodle Booking Module
https://www.wunderbyte.at
21 stars 37 forks source link

Testing connection bookingoption - moodle course #538

Open eynimeni opened 3 weeks ago

eynimeni commented 3 weeks ago

We introduced / improved a (pro) feature, the "Automatic creation of Moodle courses" from bookingoptions. In a bookingoption there is a section "Moodle Courses" where it can be chosen if users of a bookingoption should be enroled into a moodle course. It can also be a moodle course newly created. If a course is to be created, the setting config newcoursecategorycfield gives the name of the custom option field of the booking option (in section "other fields"). If there is a value found here, course will be created in a category of this name. If the name doesn't exists yet, the new category is created. If a template is selected in the config section, all courses with these tags can be used as templates for the course creation.

Could you please write tests for scenarios like: behat tests

phpunit tests

eynimeni commented 2 weeks ago

screenrecording here: https://we.tl/t-5xcbHGiJoE

semteacher commented 2 weeks ago
  1. @eynimeni Thank you for screen recording.
  2. I have already started with simplest case but faced an issue
    • for the simple "connected course" image
    • when student has booked it image
    • it not become enrolled. Button "goto Moodle course" leads to image

Does this feature supposed to be still working?

eynimeni commented 2 weeks ago

I didn't cover it in my recording. did you enable Auto-enrol in you settings?

Screenshot 2024-06-18 at 10 24 51 Screenshot 2024-06-18 at 10 27 48

Does the error persist with this setting?

semteacher commented 2 weeks ago

For case of simple commection of existing course (https://github.com/Wunderbyte-GmbH/moodle-mod_booking/commit/ccf8fdb8ad23bbddc2162c5fc9ae1e953a3de5b9):