From 584aef89e79de0d332afb7d23807a167dd26e4dd Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 18 Nov 2020 14:04:00 +0100 Subject: [PATCH 1/9] update 'bpmn-container' in 'lib integration' tests --- src/lib-integration.html | 2 +- src/static/js/lib-integration.js | 2 +- test/e2e/mxGraph.view.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib-integration.html b/src/lib-integration.html index ee97002e30..6f7ab1a8a6 100644 --- a/src/lib-integration.html +++ b/src/lib-integration.html @@ -6,7 +6,7 @@
- + diff --git a/src/static/js/lib-integration.js b/src/static/js/lib-integration.js index 39c05e5836..3beab9cd35 100644 --- a/src/static/js/lib-integration.js +++ b/src/static/js/lib-integration.js @@ -26,7 +26,7 @@ if (bpmnParameterValue) { bpmn = bpmnDefaultContent(); } // -const bpmnVisualizationIntegration = new BpmnVisualization(window.document.getElementById('bpmn-visualization-viewport')); +const bpmnVisualizationIntegration = new BpmnVisualization(window.document.getElementById('bpmn-container-custom')); bpmnVisualizationIntegration.load(bpmn); // eslint-disable-next-line @typescript-eslint/explicit-function-return-type diff --git a/test/e2e/mxGraph.view.test.ts b/test/e2e/mxGraph.view.test.ts index 557e90a9f7..9387aad92d 100644 --- a/test/e2e/mxGraph.view.test.ts +++ b/test/e2e/mxGraph.view.test.ts @@ -71,7 +71,7 @@ describe('BpmnVisu view - index page', () => { describe('BpmnVisu view - lib-integration page', () => { it('should display graph in page', async () => { - graphContainerId = 'bpmn-visualization-viewport'; + graphContainerId = 'bpmn-container-custom'; await page.goto(`http://localhost:10002/lib-integration.html?bpmn=${loadBpmnContentForUrlQueryParam('../fixtures/bpmn/simple-start-only.bpmn')}`); await expect(page.title()).resolves.toMatch('BPMN Visualization Lib Integration'); await page.waitForSelector(`#${graphContainerId}`); From 228f476a5176f58de2f169f7d4bf50d1173f1560 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 18 Nov 2020 14:36:21 +0100 Subject: [PATCH 2/9] update comments in test utils code --- test/e2e/helpers/visu-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/helpers/visu-utils.ts b/test/e2e/helpers/visu-utils.ts index a6d29e598b..43fc35fc70 100644 --- a/test/e2e/helpers/visu-utils.ts +++ b/test/e2e/helpers/visu-utils.ts @@ -156,7 +156,7 @@ export class PageTester { await expect(page.title()).resolves.toMatch(this.expectedPageTitle); // Prior loading a BPMN diagram, the DOM looks like - //