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.

Can you help me white this error? When i start un my ubuntu 24.04 the comand.

npm run all

bpmn-js@17.11.1 dev

npm test – --auto-watch --no-single-run

bpmn-js@17.11.1 test
karma start test/config/karma.unit.js --auto-watch --no-single-run

17 10 2024 11:00:20.807:INFO [preprocessor.env]: Publishing variables:
Webpack bundling…
Webpack starts watching…
asset commons.js 15.5 MiB [emitted] (name: commons) (id hint: commons)
asset runtime.js 7.59 KiB [emitted] (name: runtime)
asset testBundle.2446873947.js 1010 bytes [emitted] (name: testBundle.2446873947)
Entrypoint testBundle.2446873947 15.5 MiB = runtime.js 7.59 KiB commons.js 15.5 MiB testBundle.2446873947.js 1010 bytes
webpack 5.95.0 compiled successfully in 3677 ms
17 10 2024 11:00:25.448:WARN [karma]: No captured browser, open http://localhost:9876/
17 10 2024 11:00:25.458:INFO [karma-server]: Karma v6.4.4 server started at http://localhost:9876/
17 10 2024 11:00:25.459:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited
17 10 2024 11:00:25.469:INFO [launcher]: Starting browser ChromeHeadless
17 10 2024 11:00:25.537:ERROR [launcher]: Cannot start ChromeHeadless
[1017/110025.529642:ERROR:zygote_host_impl_linux.cc(99)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

17 10 2024 11:00:25.537:ERROR [launcher]: ChromeHeadless stdout:
17 10 2024 11:00:25.538:ERROR [launcher]: ChromeHeadless stderr: [1017/110025.529642:ERROR:zygote_host_impl_linux.cc(99)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

17 10 2024 11:00:25.539:INFO [launcher]: Trying to start ChromeHeadless again (1/2).
17 10 2024 11:00:25.604:ERROR [launcher]: Cannot start ChromeHeadless
[1017/110025.598395:ERROR:zygote_host_impl_linux.cc(99)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

17 10 2024 11:00:25.604:ERROR [launcher]: ChromeHeadless stdout:
17 10 2024 11:00:25.604:ERROR [launcher]: ChromeHeadless stderr: [1017/110025.598395:ERROR:zygote_host_impl_linux.cc(99)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

17 10 2024 11:00:25.605:INFO [launcher]: Trying to start ChromeHeadless again (2/2).
17 10 2024 11:00:25.671:ERROR [launcher]: Cannot start ChromeHeadless
[1017/110025.664729:ERROR:zygote_host_impl_linux.cc(99)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Please do not necrobump old topics. Instead link to this thread from new topic.