garris / garris/BackstopJS

Reports are generated twice

Open
#931 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I am running the backstop tests and they are running twice. First run, its displaying the report with the difference in the images and the second run, it is taking the html pages in the code and trying to get the report from it.

complete log of this run can be found in:
npm ERR! xxxx\AppData\Roaming\npm-cache\_logs\2018-11-26T10_59_32_110Z-debug.log
{ Error: Command failed: npm run test
at makeError (xxx\node_modules\start-server-and-test\node_modules\execa\index.js:174:9)
at Promise.all.then.arr (xxxx\node_modules\start-server-and-test\node_modules\execa\index.js:278:16)
at
at process._tickCallback (internal/process/next_tick.js:189:7)
code: 1,
stdout: null,
stderr: null,
failed: true,
signal: null,
cmd: 'npm run test',
timedOut: false,
killed: false }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nhsuk-frontend@0.1.4 start:server: `start-server-and-test http://localhost:xxxx`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nhsuk-frontend@0.1.4 start:server 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! C:\Users:\xxx\2018-11-26T10_59_32_327Z-debug.log
BackstopJS v3.8.4
Loading config: C:\Users\xxxDownloads\Automation\Redesign-stuff\nhsuk-frontend\tests\backstop\backstop.json

COMMAND | Executing core for "test"
createBitmaps | Selected 41 of 41 scenarios.
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Puppeteer encountered an error while running scenario "Typography"
Error: net::ERR_CONNECTION_REFUSED at http://xxxx/typography.html
ERROR: The process with PID 13376 (child process of PID 5604) could not be terminated.
Reason: The operation attempted is not supported.
Puppeteer encountered an error while running scenario "Typography"
Error: net::ERR_CONNECTION_REFUSED at http://xxxxx/typography.html
Puppeteer encountered an error while running scenario "Typography"
Error: net::ERR_CONNECTION_REFUSED at http://xxxx/typography.html
Puppeteer encountered an error while running scenario "Typography"
Error: net::ERR_CONNECTION_REFUSED at http://xxxx/typography.html
ERROR: The process with PID 9876 (child process of PID 13296) could not be terminated.
Reason: The operation attempted is not supported.
Puppeteer encountered an error while running scenario "Components"
Error: net::ERR_CONNECTION_REFUSED at http://xxxx/all.html
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.