Describe the solution you'd like
I have mochawesone embedding a video of the test if it fails utilising the existing addContext mechanism. This is working well for me.
The only slight issue I have is that when playing back the failing test it just speeds through very fast so it's sometimes hard to pinpoint the actual error in realtime when watching the video.
The html5 video player has an option to slow down/speed up the playback rate but unfortunately it does not provide any UI to change it. For example, open dev tools and enter:
document.querySelector('video').defaultPlaybackRate = 0.5;
The above will slow down all video players to half speed.
My question for mochawesome is if there is someway an html button can be added to the report to play videos at half speed and another to play at full speed. Perhaps on the toolbar at the top. I can't see any way to implement this without manually changing the resultant html file after mochawesome is finished processing but this will be horrible
Describe the solution you'd like I have mochawesone embedding a video of the test if it fails utilising the existing addContext mechanism. This is working well for me.
The only slight issue I have is that when playing back the failing test it just speeds through very fast so it's sometimes hard to pinpoint the actual error in realtime when watching the video.
The html5 video player has an option to slow down/speed up the playback rate but unfortunately it does not provide any UI to change it. For example, open dev tools and enter:
document.querySelector('video').defaultPlaybackRate = 0.5;
The above will slow down all video players to half speed.My question for mochawesome is if there is someway an html button can be added to the report to play videos at half speed and another to play at full speed. Perhaps on the toolbar at the top. I can't see any way to implement this without manually changing the resultant html file after mochawesome is finished processing but this will be horrible