File tree Expand file tree Collapse file tree 1 file changed +27
-25
lines changed
src/firmware/bootloaderInstructions Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -283,31 +283,33 @@ const BootloaderInstructions: React.VoidFunctionComponent<
283283
284284 return (
285285 < >
286- < video
287- controls
288- controlsList = "nodownload nofullscreen"
289- muted
290- disablePictureInPicture
291- className = "pb-bootloader-video"
292- >
293- < source
294- src = {
295- recovery
296- ? recoveryVideoFileMap . get ( hubType )
297- : videoFileMap . get ( hubType )
298- }
299- type = "video/mp4"
300- />
301- < track
302- kind = "metadata"
303- src = {
304- recovery
305- ? recoveryMetadataFileMap . get ( hubType )
306- : metadataFileMap . get ( hubType )
307- }
308- ref = { metadataTrackRef }
309- />
310- </ video >
286+ { process . env . NODE_ENV !== 'test' && (
287+ < video
288+ controls
289+ controlsList = "nodownload nofullscreen"
290+ muted
291+ disablePictureInPicture
292+ className = "pb-bootloader-video"
293+ >
294+ < source
295+ src = {
296+ recovery
297+ ? recoveryVideoFileMap . get ( hubType )
298+ : videoFileMap . get ( hubType )
299+ }
300+ type = "video/mp4"
301+ />
302+ < track
303+ kind = "metadata"
304+ src = {
305+ recovery
306+ ? recoveryMetadataFileMap . get ( hubType )
307+ : metadataFileMap . get ( hubType )
308+ }
309+ ref = { metadataTrackRef }
310+ />
311+ </ video >
312+ ) }
311313
312314 < div className = "pb-spacer" />
313315
You can’t perform that action at this time.
0 commit comments