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 visual tests for edges targeting collapsed elements #1867

Merged
merged 3 commits into from
Mar 16, 2022

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Mar 16, 2022

Changes

  • add diagrams for expanded/collapsed pools and subprocesses
  • HTML page: manage collapse element query parameter
  • added tests: test the diagram rendering with and without collapsed elements

Note that collapsing elements is not officially supported and is managed with mxGraph custom code.
We demonstrate it in the examples, so the new tests ensure the sequence and message flows are rendered correctly. The new tests should avoid finding a problem in the examples repository after a new version is released.

covers #295

Notes

These non regression tests are added based on the experience collected in #1863. There is a potential regression, so let's introduce tests before a silent regression happens!

What we see on the boundary events on the collapsed sub-process is what is expected from the implementation point of view.
The events are attached to the subprocess. When it is collapsed, mxGraph hides the boundary events as all other inner elements (parent-child relation between the subprocess and its boundary events).
From the BPMN point of view, the boundary events should be displayed. As we are not officially supporting the collapsed elements, no change will be introduced to fix the current behavior. The test are here to describe what we see now.
Note: we correctly support the rendering of boundary events attached to declared (in the BPMN source) collapsed-sub-process (see #821)

not collapsed collapsed
subprocess-collapse-none-snap subprocess-collapse-SubProcess_1-snap

Changes
  - add diagrams for expanded/collapsed pools and subprocesses
  - HTML page: manage collapse element query parameter
  - added tests: test the diagram rendering with and without collapsed elements

Note that collapsing elements is not officially supported and is managed with mxGraph custom code.
We demonstrate it in the examples, so the new tests ensure the sequence and message flows are rendered
correctly in this case.
@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Mar 16, 2022
@github-actions
Copy link

github-actions bot commented Mar 16, 2022

♻️ PR Preview 3e12797 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard marked this pull request as ready for review March 16, 2022 12:39
@tbouffard tbouffard requested a review from csouchet March 16, 2022 12:39
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    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