mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 23:43:57 +00:00
dda92ba3a8
* refactor: implement import lint
21 lines
614 B
JavaScript
21 lines
614 B
JavaScript
import React from 'react';
|
|
import { render, screen } from '@testing-library/react';
|
|
import SocketProvider from 'app/context/socketContext';
|
|
|
|
import PlaybackControl from '../playback/PlaybackControl';
|
|
|
|
test('check that playback control renders', async () => {
|
|
// need to inject the socket provider to make component
|
|
// render without failing
|
|
render(
|
|
<SocketProvider>
|
|
<PlaybackControl />
|
|
</SocketProvider>
|
|
);
|
|
|
|
// Text labels for times
|
|
// substring match, ignore case
|
|
expect(screen.getByText(/started/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/finish/i)).toBeInTheDocument();
|
|
});
|