diff --git a/src/library-authoring/library-info/LibraryInfo.test.tsx b/src/library-authoring/library-info/LibraryInfo.test.tsx index f83d80ee61..d5976d6c97 100644 --- a/src/library-authoring/library-info/LibraryInfo.test.tsx +++ b/src/library-authoring/library-info/LibraryInfo.test.tsx @@ -163,30 +163,4 @@ describe('', () => { await waitFor(() => expect(axiosMock.history.post[0].url).toEqual(url)); }); - - it('should discard changes', async () => { - const url = getCommitLibraryChangesUrl(libraryData.id); - axiosMock.onDelete(url).reply(200); - - render(); - const discardButton = screen.getByRole('button', { name: /discard changes/i }); - fireEvent.click(discardButton); - - expect(await screen.findByText('Library changes reverted successfully')).toBeInTheDocument(); - - await waitFor(() => expect(axiosMock.history.delete[0].url).toEqual(url)); - }); - - it('should show error on discard changes', async () => { - const url = getCommitLibraryChangesUrl(libraryData.id); - axiosMock.onDelete(url).reply(500); - - render(); - const discardButton = screen.getByRole('button', { name: /discard changes/i }); - fireEvent.click(discardButton); - - expect(await screen.findByText('There was an error reverting changes in the library.')).toBeInTheDocument(); - - await waitFor(() => expect(axiosMock.history.delete[0].url).toEqual(url)); - }); }); diff --git a/src/library-authoring/library-info/LibraryPublishStatus.tsx b/src/library-authoring/library-info/LibraryPublishStatus.tsx index d159d641cb..58937c8b98 100644 --- a/src/library-authoring/library-info/LibraryPublishStatus.tsx +++ b/src/library-authoring/library-info/LibraryPublishStatus.tsx @@ -150,11 +150,15 @@ const LibraryPublishStatus = ({ library } : LibraryPublishStatusProps) => { -
- -
+ { /* + * TODO, the discard changes breaks the library. + * Discomment this when discard changes is fixed. +
+ +
+ */ }