Skip to content

Instantly share code, notes, and snippets.

@GarthDB
Created July 22, 2020 18:51
Show Gist options
  • Save GarthDB/7e41d2cea2a8dfd2ec30df9d4ca928ff to your computer and use it in GitHub Desktop.
Save GarthDB/7e41d2cea2a8dfd2ec30df9d4ca928ff to your computer and use it in GitHub Desktop.
Backstop Docker Error
~/Spectrum/spectrum-css vrt-reference 6m 42s
❯ npm run backstop:docker:test
> [email protected] backstop:docker:test /Users/garthdb/Spectrum/spectrum-css
> backstop test --docker --config=backstop_data/backstop_test.js --env=local
BackstopJS v5.0.4
Loading config: /Users/garthdb/Spectrum/spectrum-css/backstop_data/backstop_test.js
COMMAND | Executing core for "test"
Delegating command to Docker... docker run --rm -i -t=false --mount type=bind,source="/Users/garthdb/Spectrum/spectrum-css",target=/src --network host --shm-size 2048m jianliao/backstopjs:5.0.4 test "--moby" "--config=backstop_data/backstop_test.js" "--env=local"
BackstopJS v5.0.4
Loading config: /src/backstop_data/backstop_test.js
COMMAND | Executing core for "test"
createBitmaps | Selected 87 of 87 scenarios.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
x Close Browser
Puppeteer encountered an error while running scenario "actionmenu-light-medium"
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "actionmenu-light-medium" on 1 time
Puppeteer encountered an error while running scenario "actiongroup-light-medium"
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "actiongroup-light-medium" on 1 time
Puppeteer encountered an error while running scenario "accordion-light-medium"
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "accordion-light-medium" on 1 time
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Puppeteer encountered an error while running scenario "actionbutton-light-medium"
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "actionbutton-light-medium" on 1 time
Puppeteer encountered an error while running scenario "actionmenu-light-medium" on retry 1
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "actionmenu-light-medium" on 2 time
Puppeteer encountered an error while running scenario "accordion-light-medium" on retry 1
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "accordion-light-medium" on 2 time
Puppeteer encountered an error while running scenario "actionbutton-light-medium" on retry 1
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "actionbutton-light-medium" on 2 time
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
x Close Browser
x Close Browser
Browser Console Log 0: JSHandle:BackstopTools have been installed.
x Close Browser
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Puppeteer encountered an error while running scenario "asset-light-medium"
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "asset-light-medium" on 1 time
Puppeteer encountered an error while running scenario "assetlist-light-medium"
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "assetlist-light-medium" on 1 time
Puppeteer encountered an error while running scenario "avatar-light-medium"
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "avatar-light-medium" on 1 time
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
x Close Browser
x Close Browser
x Close Browser
x Close Browser
Puppeteer encountered an error while running scenario "barloader-light-medium"
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "barloader-light-medium" on 1 time
Puppeteer encountered an error while running scenario "banner-light-medium"
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "banner-light-medium" on 1 time
Puppeteer encountered an error while running scenario "breadcrumb-light-medium"
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "breadcrumb-light-medium" on 1 time
Puppeteer encountered an error while running scenario "button-cta-light-medium"
TimeoutError: Navigation timeout of 60000 ms exceeded
Re-running scenario "button-cta-light-medium" on 1 time
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
x Close Browser
Puppeteer encountered an error while running scenario "button-cta-light-medium" on retry 1
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "button-cta-light-medium" on 2 time
Puppeteer encountered an error while running scenario "barloader-light-medium" on retry 1
TimeoutError: waiting for selector "html.wf-active" failed: timeout 30000ms exceeded
Re-running scenario "barloader-light-medium" on 2 time
COMMAND | Command "test" ended with an error after [408.652s]
COMMAND | TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r722234 is guaranteed to work.
at Timeout.onTimeout (/usr/local/lib/node_modules/backstopjs-spectrum/node_modules/puppeteer/lib/Launcher.js:761:14)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
x Close Browser
Browser Console Log 0: JSHandle:BackstopTools have been installed.
Browser Console Log 0: JSHandle:BackstopTools have been installed.
x Close Browser
x Close Browser
x Close Browser
COMMAND | Executing core for "openReport"
openReport | Attempting to ping
COMMAND | Command "test" ended with an error after [433.438s]
COMMAND | Error: docker run --rm -i -t=false --mount type=bind,source="/Users/garthdb/Spectrum/spectrum-css",target=/src --network host --shm-size 2048m jianliao/backstopjs:5.0.4 test "--moby" "--config=backstop_data/backstop_test.js" "--env=local" returned 1
at ChildProcess.<anonymous> (/Users/garthdb/Spectrum/spectrum-css/node_modules/backstopjs-spectrum/core/util/runDocker.js:68:18)
at ChildProcess.emit (events.js:196:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:257:12)
openReport | Remote not detected. Opening backstop_data/html_report/index.html
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] backstop:docker:test: `backstop test --docker --config=backstop_data/backstop_test.js --env=local`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] backstop:docker:test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/garthdb/.npm/_logs/2020-07-22T18_44_56_723Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment