Failed to build package (bpmn-js-properties-panel)

bpmn-js-properties-panel

failed in:

bpmn-js-properties-panel/test/spec/factory/AutoSuggestTextBoxFactorySpec.js

i got those errors:

  element-templates/parts - Visibility
    √ should only show element template tab entries if applied
    customization
      √ should allow overriding
      entriesVisible
        √ all entries visible
        √ all entries visible by default
        √ all entries visible by default, asyncBefore hidden
        √ all entries hidden by default, asyncBefore visible

  element-templates/util - validate
    √ should return validation errors only

PhantomJS 2.1.1 (Windows 8.0.0): Executed 2308 of 2312 (3 FAILED) (skipped 4) (6 mins 39.642 secs / 59.317 secs)
TOTAL: 3 FAILED, 2305 SUCCESS


1) should place to bottom-left
     factory/AutoSuggestTextBoxFactory #getSuggestionListPosition
     expected 'bottom-right' to equal 'bottom-left'
AssertionError@node_modules/chai/chai.js:9320:24
assert@node_modules/chai/chai.js:239:31
assertEqual@node_modules/chai/chai.js:1383:18
methodWrapper@node_modules/chai/chai.js:7709:30


2) should place to top-right
     factory/AutoSuggestTextBoxFactory #getSuggestionListPosition
     expected 'bottom-right' to equal 'top-right'
AssertionError@node_modules/chai/chai.js:9320:24
assert@node_modules/chai/chai.js:239:31
assertEqual@node_modules/chai/chai.js:1383:18
methodWrapper@node_modules/chai/chai.js:7709:30


3) should place to top-left
     factory/AutoSuggestTextBoxFactory #getSuggestionListPosition
     expected 'bottom-right' to equal 'top-left'
AssertionError@node_modules/chai/chai.js:9320:24
assert@node_modules/chai/chai.js:239:31
assertEqual@node_modules/chai/chai.js:1383:18
methodWrapper@node_modules/chai/chai.js:7709:30



npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bpmn-js-properties-panel@0.40.0 test: `karma start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bpmn-js-properties-panel@0.40.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

We already tracked this problem regarding some failing test cases with PhantomJS: Some Tests fail on phantomjs when running under linux · Issue #384 · bpmn-io/bpmn-js-properties-panel · GitHub

To prevent running the tests on PhantomJS (which is default currently), specify the testing browsers via TEST_BROWSERS environment variable. E.g. for macOS

TEST_BROWSERS=ChromeHeadless npm test

For windows, the way to specify the environment variable might slightly differ.