import React from 'react' import { render, screen } from '@testing-library/react' import { VideoSection, VideoSectionProps } from './index' const props: VideoSectionProps = { title: 'Tutorial Section Title', sources: [ { src: 'https://cdn.blablacar.com/kairos/assets/videos/newbie-lp/fr_FR.webm', type: 'video/webm', }, { src: 'https://cdn.blablacar.com/kairos/assets/videos/newbie-lp/fr_FR.mp4', type: 'video/mp4', }, ], children:
Hello World!
, } // Issue with Jest and muted attribute on video elements // https://github.com/testing-library/react-testing-library/issues/470 Object.defineProperty(HTMLMediaElement.prototype, 'muted', { set: () => {}, }) describe('VideoSection', () => { it('Should render the Tutorial Section and its children', () => { render(