WebDriver/RemoteProtocol/GutenbergCDPUsage: Difference between revisions

m
Whimboo moved page Remote/GutenbergCDPUsage to WebDriver/RemoteProtocol/GutenbergCDPUsage: Reorganization for WebDriver BiDi project documenation
(The `env` family of scripts has been deprecated. Please use `wp-env` instead.)
m (Whimboo moved page Remote/GutenbergCDPUsage to WebDriver/RemoteProtocol/GutenbergCDPUsage: Reorganization for WebDriver BiDi project documenation)
 
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
# Make sure Docker is running
# Make sure Docker is running
# <code>nvm install</code> in gutenberg dir to ensure correct node version is installed
# <code>nvm install</code> in gutenberg dir to ensure correct node version is installed
# <code>npm install</code> -- you might see some warnings, this is fine.
# <code>npm ci</code> -- you might see some warnings, this is fine.
# <code>npm run build</code>
# <code>npm run build</code>
# Build local env: <code>npm run wp-env install</code>. Avoid running <code>npm run dev</code>; takes a long time, not useful.
# Build local env: <code>npm run wp-env install</code>. Avoid running <code>npm run dev</code>; takes a long time, not useful.
Line 32: Line 32:
</pre>
</pre>


Copy our modifications of Puppeteer:
<small>Note: Puppeteer can download and install Firefox Nightly and you can use the path it installs into for the executablePath. For example, on macOS: <code>path/to/gutenberg/node_modules/puppeteer/.local-firefox/mac-80/Firefox\ Nightly.app/Contents/MacOS/firefox</code></small>
 
# Copy Firefox's modifications of Puppeteer:


<pre>
<pre>
canmove, Confirmed users, Bureaucrats and Sysops emeriti
4,747

edits