We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965db36 commit d6b9ae1Copy full SHA for d6b9ae1
src/files-and-videos/videos-page/VideosPage.test.jsx
@@ -226,6 +226,12 @@ describe('Videos page', () => {
226
227
expect(addThumbnailButton).toBeNull();
228
});
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
+ });
235
describe('with videos with backend status in_progress', () => {
236
it('should render video with in progress status', async () => {
237
await mockStore(RequestStatus.IN_PROGRESS);
0 commit comments