Skip to content

Commit d6b9ae1

Browse files
committed
test: fix coverage
1 parent 965db36 commit d6b9ae1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/files-and-videos/videos-page/VideosPage.test.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ describe('Videos page', () => {
226226

227227
expect(addThumbnailButton).toBeNull();
228228
});
229+
it('should set thumbnailError when image fails to load', async () => {
230+
await mockStore(RequestStatus.SUCCESSFUL);
231+
const image = screen.getByRole('img');
232+
fireEvent.error(image);
233+
expect(screen.getByTestId('video-thumbnail-mOckID1')).toBeVisible();
234+
});
229235
describe('with videos with backend status in_progress', () => {
230236
it('should render video with in progress status', async () => {
231237
await mockStore(RequestStatus.IN_PROGRESS);

0 commit comments

Comments
 (0)