Closed codefactor closed 4 years ago
@vladitasev ,
On this issue I guess right now we will do more investigation from our side to see what we can do to change the way the tests are executed. We may just change it entirely and use our existing karma-based testing which, if I'm not mistaken, uses it's own Chrome binary installation which I think comes with Puppeteer.
Unfortunately, we rely on the package to be delivering a more complete installation and one which can be done purely on the SAP corporate network - rather than depending on the developer and/or OPs to install any binaries (such as Chrome or global install the Chrome Driver). Also, if I'm not mistaken we use Chromium, for some reason - maybe because this one is more approved or already readily available?
Are you aware of any configuration or hooks we can do to update the way the tools interacts with a Browser to run it's tests?
@codefactor ,
For general chromedriver
settings, see:
https://www.npmjs.com/package/chromedriver
I believe it would be easiest to automate chromedriver download from nexus, f.e. with curl
in a pre-build task and then point to the downloaded binary, f.e. taken from the page above:
npm install chromedriver --chromedriver_filepath=/path/to/chromedriver_mac64.zip
You can also use .npmrc
or PATH
, all methods are described there in the "Custom binaries files".
Now it is possible to manage ChromeDriver separately: https://github.com/SAP/ui5-webcomponents/issues/1682
For details, see: https://github.com/SAP/ui5-webcomponents/blob/master/docs/dev/Testing%20Web%20Components.md
Describe the bug SuccessFactors is trying to build our own library of UI5 web components. I have followed the tutorial to create a new project, which is a package of the common-components github (uses Lerna).
I cannot run the "npm run test" command locally - this same issue is happening on all SuccessFactors Dev VM machine. I suspect that your team is able to get the test to run because of some other type of global NPM setting or binary installation of some kind. This is blocking the merge of the code to master, so I am currently working on a branch waiting for this issue to be resolved and then the pre-commit checks on the PR can pass.
To reproduce
Using a machine which does not have a local Chrome installation, and/or does not have general internet connectivity outside the SAP Corporate network:
Run a test and see if it works
Isolated example Please provide an isolated example if possibile, by forking CodeSandbox
Expected behavior
Ctrl+c
the server and start againScreenshots If applicable, add screenshots to help explain your problem.
Context
Affected components (if known)
@ui5/webcomponents-tools
Log output / Any errors in the console
Checking the chrome driver from npm -- note that I have already deleted the
node_modules
folder locally and reinstalled a few times.