mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-12 10:04:16 +00:00
c87167c8c6
This prevents the .test-container selector to appear twice in our test markup: ```html <div class="test-container passed" id="camunda-properties simple should open stuff"> <div class="title-row"> <a href="#camunda-properties%20simple%20should%20open%20stuff"> <h3 class="test-titel">camunda-properties simple should open stuff</h3> </a> <div class="test-result" style="float: right;">passed</div> </div> <div class="test-content-container test-container"> <!-- test content --> </div> </div> ``` With this commit we only add the .test-content-container marker in cases where `mocha-test-container-support` is not present upon running `bootstrapBpmnJS`.
29 lines
718 B
JavaScript
29 lines
718 B
JavaScript
export * from './helper';
|
|
|
|
import {
|
|
insertCSS
|
|
} from './helper';
|
|
|
|
insertCSS('diagram-js.css', require('diagram-js/assets/diagram-js.css'));
|
|
|
|
insertCSS('bpmn-embedded.css', require('bpmn-font/dist/css/bpmn-embedded.css'));
|
|
|
|
insertCSS('diagram-js-testing.css',
|
|
'body .test-container { height: auto }' +
|
|
'body .test-content-container { height: 90vh; }'
|
|
);
|
|
|
|
|
|
import ChaiMatch from 'chai-match';
|
|
import BoundsMatchers from './matchers/BoundsMatchers';
|
|
import ConnectionMatchers from './matchers/ConnectionMatchers';
|
|
import JSONMatcher from './matchers/JSONMatcher';
|
|
|
|
/* global chai */
|
|
|
|
// add suite specific matchers
|
|
chai.use(ChaiMatch);
|
|
chai.use(BoundsMatchers);
|
|
chai.use(ConnectionMatchers);
|
|
chai.use(JSONMatcher);
|