Page MenuHomePhabricator

Set up screenshots and video recording with Puppeteer
Closed, ResolvedPublic

Description

Status


TODO

  • push npm package to npm

The aim of this task is to research on various methods of setting up video recording and screenshots for our test runs while using Puppeteer.

Why do we need video recording and screenshots?

It often occurs that tests pass on the local set up while they fail on the CI. Video recording and screenshots come in handy particularly in debugging failed tests on the CI.

Links

Resources

Event Timeline

Getting this error with puppeteer-recorder:

console.error
   Unhandled error

     at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)

 console.error
   Error: spawn ffmpeg ENOENT
       at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
       at onErrorNT (internal/child_process.js:469:16)
       at processTicksAndRejections (internal/process/task_queues.js:84:21)

     at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)

This seems to be an issue with ffmpeg dependency. I will try running the test on fresh node

This comment was removed by Soham.

Is there anything left to do here? Can this task be resolved?

@zeljkofilipin, I think we need to still keep this open until we find a way to run the video recorder and screenshot globally.

zeljkofilipin updated the task description. (Show Details)
zeljkofilipin updated the task description. (Show Details)
zeljkofilipin moved this task from In Progress to Waiting/Blocked on the User-Soham board.
zeljkofilipin updated the task description. (Show Details)
zeljkofilipin updated the task description. (Show Details)
zeljkofilipin moved this task from In Progress to Waiting/Blocked on the User-Soham board.
zeljkofilipin claimed this task.