diff --git a/test/TestHelper.js b/test/TestHelper.js index f7f6dcf7..d1f4c90a 100644 --- a/test/TestHelper.js +++ b/test/TestHelper.js @@ -10,7 +10,7 @@ insertCSS('bpmn-embedded.css', require('bpmn-font/dist/css/bpmn-embedded.css')); insertCSS('diagram-js-testing.css', 'body .test-container { height: auto }' + - 'body .test-container .test-content-container { height: 90vmin; }' + 'body .test-content-container { height: 90vh; }' ); diff --git a/test/helper/index.js b/test/helper/index.js index 7cbf8e94..8a0ab180 100644 --- a/test/helper/index.js +++ b/test/helper/index.js @@ -72,11 +72,11 @@ export function bootstrapBpmnJS(BpmnJS, diagram, options, locals) { testContainer = TestContainer.get(this); } catch (e) { testContainer = document.createElement('div'); + testContainer.classList.add('test-content-container'); + document.body.appendChild(testContainer); } - testContainer.classList.add('test-container'); - var _options = options, _locals = locals;