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] improve 'events' visual tests #543

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Aug 20, 2020

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

@tbouffard tbouffard added chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) WIP 🚧 Pull request in progress and/or not ready for review. Used in addition to marking it as draft labels Aug 20, 2020
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.
@tbouffard tbouffard force-pushed the 541-improve_events_visu_testing branch from 5e5903a to 5145db6 Compare August 24, 2020 09:13
@tbouffard tbouffard removed the WIP 🚧 Pull request in progress and/or not ready for review. Used in addition to marking it as draft label Aug 24, 2020
@tbouffard tbouffard marked this pull request as ready for review August 24, 2020 09:15
@tbouffard tbouffard requested a review from aibcmars August 24, 2020 09:15
Copy link
Contributor

@aibcmars aibcmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbouffard tbouffard changed the title [TEST] improve visual non regression tests about BPMN events [TEST] improve 'events' visual tests Aug 24, 2020
@tbouffard tbouffard merged commit 47d94a6 into master Aug 24, 2020
@tbouffard tbouffard deleted the 541-improve_events_visu_testing branch August 24, 2020 12:54
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