diff --git a/test/spec/Example.spec.js b/test/spec/Example.spec.js index e2187be..3a1f1b6 100644 --- a/test/spec/Example.spec.js +++ b/test/spec/Example.spec.js @@ -67,7 +67,7 @@ insertCSS('example.css', ` background-color: #f7f7f8; } - .panel { + .bottom-panel { position: absolute; bottom: 0; left: 0; @@ -81,7 +81,7 @@ insertCSS('example.css', ` font-family: sans-serif; } - .panel .errorContainer { + .bottom-panel .error-container { resize: none; flex-grow: 1; background-color: #f7f7f8; @@ -93,17 +93,17 @@ insertCSS('example.css', ` overflow: auto; } - .panel .errorItem { + .bottom-panel .error-item { cursor: pointer; } - .panel .footerContainer { + .bottom-panel .footer-container { border-top: solid 1px #ccc; padding: 5px; } - .panel button, - .panel input { + .bottom-panel button, + .bottom-panel input { width: 200px; } `); @@ -332,21 +332,21 @@ function createTestUI(modeler) { ] }); - const linterPanel = domify(` -
-
-
+ const bottomPanel = domify(` +
+
+
`); - container.appendChild(linterPanel); + container.appendChild(bottomPanel); - linterPanel.querySelector('input').value = bpmnjs.getDefinitions().get('executionPlatformVersion'); + bottomPanel.querySelector('input').value = bpmnjs.getDefinitions().get('executionPlatformVersion'); - linterPanel.querySelector('input').addEventListener('input', ({ target }) => { + bottomPanel.querySelector('input').addEventListener('input', ({ target }) => { modeling.updateModdleProperties( canvas.getRootElement(), bpmnjs.getDefinitions(), @@ -360,17 +360,17 @@ function createTestUI(modeler) { linter.lint(definitions).then(reports => { linting.setErrors(reports); - const errorContainer = linterPanel.querySelector('.errorContainer'); + const errorContainer = bottomPanel.querySelector('.error-container'); errorContainer.innerHTML = ''; reports.map((report) => { const { id, message, category, rule, documentation } = report; if (category === 'rule-error') { - return domify(`
${ category } Rule <${ escapeHTML(rule) }> errored with the following message: ${ escapeHTML(message) }
`); + return domify(`
${ category } Rule <${ escapeHTML(rule) }> errored with the following message: ${ escapeHTML(message) }
`); } - const element = domify(`
${ category } ${ id }: ${escapeHTML(message) }
`); + const element = domify(`
${ category } ${ id }: ${escapeHTML(message) }
`); if (documentation.url) { const documentationLink = domify(`ref`);