[TEST] improve 'events' visual tests #543
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
covers #541
Use a BPMN diagram that contains the whole events of the BPMN palette. So, we
now test all elements that the lib is currently supported, and we are prepared
to test remaining events to support in the future.
As the BPMN diagram is too large for the load method using the url query param
in the 'visual testing' page, add a new loading method:
- allow the test page to load a BPMN diagram using a query param providing the
url to the file to load (via the Fetch API)
- copy the file from the test fixtures folder to a folder that is served by
the test server
- pass the relative path to the newly copied file as url parameter to make the
page load this file
- update the 'visual testing' page to display the BPMN file fetching errors
In addition, refactor and share functions used to load the BPMN content in e2e
tests.
Note: the test code needs refactorings, I will manage this in a dedicated PR to avoid adding too much changes here