Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST] Add more BPMN rendering visual tests for labels and waypoints #1023

Merged
merged 2 commits into from
Jan 19, 2021

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Jan 12, 2021

Add new tests to check BPMN rendering for

  • label fonts: ensure the font properties of BPMN Label Styles are used in
    rendering
  • waypoints: check how the lib behaves when there is no waypoints and when
    terminal waypoints are defined inside or outside of the source/target shapes

Also always copy test diagrams to destination.
On Ubuntu, not overriding files takes 6ms, overriding 12ms.
The copy is very fast, and not copying the files has side effects: when editing
the diagram it is not updated and we don't see the change in tests. This is hard
to debug and error prone.

covers #295, #349, #350, #715, #994

@tbouffard tbouffard added the WIP 🚧 Pull request in progress and/or not ready for review. Used in addition to marking it as draft label Jan 12, 2021
@tbouffard
Copy link
Member Author

tbouffard commented Jan 14, 2021

The screenshots presented here have been done with [email protected] and [email protected]

without waypoints

Demonstrate what we see in #349

bpmn-visualization bpmn-js
flows waypoints 01 none-snap waypoints_none_bpmn-js@8 0 1

waypoints inside shapes

The mxgraph configuration (we use the defaults for this topic) forces the edges terminals to be on the perimeter of the shapes. Because of #295, the paths are always orthogonal.
This may also help for #715 and #994.

bpmn-visualization bpmn-js
flows waypoints 02 terminal waypoints inside shapes-snap waypoints_inside_bpmn-js@8 0 1

waypoints outside shapes

The mxgraph configuration (we use the defaults for this topic) forces the edges terminals to be on the perimeter of the shapes. So we have additional points on the shape, and we see small orthogonal paths because of #295.
This may also help for #715 and #994.

bpmn-visualization bpmn-js
flows waypoints 03 terminal waypoints outside shapes-snap waypoints_outside_bpmn-js@8 0 1

@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Jan 18, 2021
Add new tests to check BPMN rendering for
  - label fonts: ensure the font properties of BPMN Label Styles are used in
  rendering
  - waypoints: check how the lib behaves when there is no waypoints and when
  terminal waypoints are defined inside or outside of the source/target shapes

Also always copy test diagrams to destination.
On Ubuntu, not overriding files takes 6ms, overriding 12ms.
The copy is very fast, and not copying the files has side effects: when editing
the diagram it is not updated and we don't see the change in tests. This is hard
to debug and error prone.
@tbouffard tbouffard force-pushed the chore/add_more_visual_tests_for_bpmn_rendering branch from 5703c7e to 217da31 Compare January 18, 2021 18:50
@tbouffard tbouffard removed the WIP 🚧 Pull request in progress and/or not ready for review. Used in addition to marking it as draft label Jan 18, 2021
@tbouffard tbouffard marked this pull request as ready for review January 18, 2021 18:50
@tbouffard tbouffard changed the title [TEST] Add more BPMN Rendering visual tests [TEST] Add more BPMN rendering visual tests for labels and waypoints Jan 18, 2021
@csouchet csouchet enabled auto-merge (squash) January 19, 2021 14:10
@csouchet csouchet merged commit d94a2ae into master Jan 19, 2021
@csouchet csouchet deleted the chore/add_more_visual_tests_for_bpmn_rendering branch January 19, 2021 14:12
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants