snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.21k stars 3.2k forks source link

phantomjs (v2.1.7) is preventing ability to run tests #9701

Closed TerraTech closed 2 years ago

TerraTech commented 3 years ago

Please confirm you have done the following before posting your bug report:

Describe the bug Unable to run tests due to phantomJS failing.

https://snipe-it.readme.io/docs/contributing-overview#testing

To Reproduce See Error Messages below.

Expected behavior

phantomJS listens on port 4444

Server (please complete the following information):

Error Messages

$ node_modules/.bin/phantomjs --webdriver=4444 --ignore-ssl-errors=true
Error executing phantom at /home/snipeit/www/snipeit-TEST/node_modules/phantomjs/lib/phantom/bin/phantomjs
Error: spawn /home/snipeit/www/snipeit-TEST/node_modules/phantomjs/lib/phantom/bin/phantomjs ENOENT
  at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
  at onErrorNT (internal/child_process.js:465:16)
  at processTicksAndRejections (internal/process/task_queues.js:80:21)

Additional context

wewhite commented 2 years ago

Does phantomjs work, what is the output of: phantomjs -v The latest stable version is 2.1.1. If PhantomJS fails, try this:

export OPENSSL_CONF=/dev/null
phantomjs -v
snipe commented 2 years ago

We're currently upgrading how we do tests (via PR https://github.com/snipe/snipe-it/pull/11671) so I think this can be safely closed for now.