Content
View differences
Updated by Judith Roth 4 months ago
The goal is to define a way of testing BlockNote and Hocuspocus functionality from a unit/integration test perspective.
Currently we face challenges with Hocuspocus, as we don't have it available for rails/capybara. P~~lus, Plus, we have a challenge with BlockNote now that it is running in a Shadow root. Capybara cannot traverse the **shadow borders** it seems.~~ seems.
So, for this ticket, the plan is:
* Figure out a way of setting up Hocuspocus on the test setup
* ~~Find Find a way to reliably test BlockNote inside the shadow dom~~ => <mention class="mention" data-id="70541" data-type="work_package" data-text="##70541">##70541</mention> dom
* Include unit tests to guarantee the base functionality of Hocuspocus and BlockNote
* ~~Review Review tests marked as pending -~~ [~~https://github.com/opf/openproject/blob/dev/modules/documents/spec/features/attachment\_upload\_spec.rb~~](https://github.com/opf/openproject/blob/dev/modules/documents/spec/features/attachment_upload_spec.rb) => ##70541 - [https://github.com/opf/openproject/blob/dev/modules/documents/spec/features/attachment\_upload\_spec.rb](https://github.com/opf/openproject/blob/dev/modules/documents/spec/features/attachment_upload_spec.rb)
Currently we face challenges with Hocuspocus, as we don't have it available for rails/capybara. P~~lus,
So, for this ticket, the plan is:
* Figure out a way of setting up Hocuspocus on the test setup
* ~~Find
* Include unit tests to guarantee the base functionality of Hocuspocus and BlockNote
* ~~Review