Open nunoguedelha opened 2 years ago
$ node -v
v14.19.1
$ npm -v
6.14.16
npm ls
outputs an error:
npm ERR! peer dep missing: playwright@>=1, required by @percy/playwright@1.0.2
Playwright is a Node.js library for automating Chromium, Firefox and Webkit web browser engines (Webkit is the one used on Safari among others). this package allows running a headless browser process, i.e. without UI. Then, percy is a remote platform for visual testing web applications and OpenMCT team uses it for testing their platform. So it seems to have some relevance for testing the installation. I'll check again later with an install from scratch after a full cleanup.
I did a new installation from scratch, after
package.json
the peer dependencies,
"playwright": ">=1",
"ajv": "^6.9.1"
peer dependencies ppear in the peerDependencies
section of the package.json
. They only specify the compatibility/dependency of the project with the mentioned packages, but those have to be installed manually. Peer dependencies are only encountered when you publish your own package or when your pakage/project is meant to be used by another program (refer to further details in Difference between dependencies, devDependencies and peerDependencies).
.gitignore
in order to commit the package-lock.json
file,"express": 4.18.1
to package.json
for aligning this package with the yarp.js
installation.We get an installation without errors.
Open MCT Layout: the pane: ✓ is displayed on layout load (13ms) ✓ is collapsed on layout load if specified by a hide param (10ms) ✓ on toggle collapses if expanded (6ms) ✓ on toggle expands if collapsed (6ms)
Application router utility functions ✓ has initial hash when loaded (101ms) ✓ The setSearchParam function sets an individual search parameter in the window location hash (83ms) ✓ The deleteSearchParam function deletes an individual search paramater in the window location hash (89ms) ✓ The setSearchParam function sets a multiple individual search parameters in the window location hash (126ms) ✓ The setAllSearchParams function replaces all search paramaters in the window location hash (127ms) ✓ The doPathChange function triggers aborting all requests when doing a path change (176ms)
The Agent ✓ recognizes desktop devices as non-mobile (1ms) ✓ detects iPhones (0ms) ✓ detects iPads (1ms) ✓ detects display orientation (0ms) ✓ detects touch support (0ms) ✓ allows for checking browser type (0ms)
Chrome Headless 101.0.4951.54 (Mac OS 10.15.7): Executed 784 of 848 (skipped 64) SUCCESS (26.69 secs / 25.368 secs) TOTAL: 784 SUCCESS
TOTAL: 784 SUCCESS
Statements : 52.1% ( 10274/19719 ) Branches : 39.72% ( 3325/8369 ) Functions : 51.27% ( 3046/5940 ) Lines : 52.2% ( 10172/19483 )
Summary
Update fork repo from original one and install commit 3fcb4acf4bcea56fd3b04c9ba54188d092adbb46 on branch
master-2.0.3
.:warning: Release
v2.0.3
is only compatible with node.js 14.19.1+.No change required on the
~/.bash_profile
/~/.bashrc
.master-2.0.3
=> All PASS.