geoffrowland / moodle-editor_atto-chemistry

Chemistry equation editor for Moodle using the mhchem TeX extension in MathJax
1 stars 6 forks source link

Behat errors in Moodle 3.9 #11

Open Kathrin84 opened 4 years ago

Kathrin84 commented 4 years ago

Hello,

when doing the work for updating to latest Moodle 3.9, I ran your Behat tests and get the following error:

.U------U-----.U---------

--- Failed hooks:

    AfterStep # behat_hooks::after_step_javascript()
      Coding error detected, it must be fixed by a programmer: Step 'I navigate to "Edit profile" node in "My profile settings"'' is undefined. (coding_exception)

    AfterStep # behat_hooks::after_step_javascript()
      Coding error detected, it must be fixed by a programmer: Step 'I navigate to "Edit profile" node in "My profile settings"'' is undefined. (coding_exception)

2 scenarios (2 failed)
25 steps (2 passed, 3 undefined, 20 skipped)
1m28.64s (45.66Mb)

This step can be fixed with the step

When I open my profile in edit mode

But a background to make the button available in the atto editor is also needed:

Given the following config values are set as admin:
      | toolbar | other = html, chemistry | editor_atto |

After this some other steps have to be improved, too. I started improving the tests, hoewever I cannot invest more time to create a good pull request.

So I will just leave this issue as a hint.

Thanks for fixing the tests in advance and best, Kathrin