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

Automatically model MIWG reference diagrams #23

Open
nikku opened this issue Aug 9, 2022 · 5 comments
Open

Automatically model MIWG reference diagrams #23

nikku opened this issue Aug 9, 2022 · 5 comments
Labels
backlog Queued in backlog spring cleaning Could be cleaned up one day

Comments

@nikku
Copy link
Member

nikku commented Aug 9, 2022

What should we do?

As part of the MIWG test submission you have to model a set of diagrams and export them ("export test").

Given our scripted modeling capabilities we could automate large parts of the diagram modeling.

Why should we do it?

Automating modeling allows us to execute the MIWG tests on a more frequent basis.

@nikku nikku added the spring cleaning Could be cleaned up one day label Aug 9, 2022
@barmac barmac self-assigned this Aug 16, 2022
@barmac
Copy link
Member

barmac commented Aug 16, 2022

I want to tackle this as I am doing this year's MIWG (re)submission anyway.

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Aug 17, 2022
@barmac
Copy link
Member

barmac commented Aug 18, 2022

I don't see a way to create event definitions with bpmn-js-cli, and this is necessary to fully automate BPMN MIWG export tests, if we want to use the CLI only.

As an alternative, we could try out puppeteer recorder to prepare e2e tests. I will record my manual export tests so that we have code to play with.

@nikku
Copy link
Member Author

nikku commented Aug 18, 2022

Integration of new commands is fairly straight forward: https://github.com/bpmn-io/bpmn-js-integration/blob/master/lib/snapshot/commands/snapshot.js.

@barmac
Copy link
Member

barmac commented Aug 18, 2022

I assumed we use puppeteer for the integration tests, but in fact we depend on PhantomJS for that 🤡.

@barmac
Copy link
Member

barmac commented Aug 18, 2022

I tried to record my actions with Chrome and it appears that it does not notice dragging operations which prevents me from recording shapes/labels movement as well as connection adjustment. I will not implement this issue, but still save already prepared puppeteer JSONs:

https://gist.github.com/barmac/475981da91aadb212ca756713499e0b5

@barmac barmac added backlog Queued in backlog and removed in progress Currently worked on labels Aug 18, 2022
@barmac barmac removed their assignment Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog spring cleaning Could be cleaned up one day
Projects
None yet
Development

No branches or pull requests

2 participants