import React from 'react'; import renderer from 'react-test-renderer'; import PlayerControlPanel from '.'; import ScreenSharingSource from '../../features/PeerConnection/ScreenSharingSourceEnum'; import { VideoQuality } from '../../features/VideoAutoQualityOptimizer/VideoQualityEnum'; jest.useFakeTimers(); it('should match exact snapshot', () => { const subject = renderer.create( <> {}} isPlaying isDefaultPlayerTurnedOn handleClickFullscreen={() => {}} handleClickPlayPause={() => {}} setVideoQuality={() => {}} selectedVideoQuality={VideoQuality.Q_100_PERCENT} screenSharingSourceType={ScreenSharingSource.SCREEN} toaster={undefined} /> ); expect(subject).toMatchSnapshot(); });