Skip to content

Commit

Permalink
refactor: improve tests
Browse files Browse the repository at this point in the history
Rebase on top of
openedx#1263 and
fix updated tests
  • Loading branch information
navinkarkera committed Sep 9, 2024
1 parent 2cfc548 commit 3d89f90
Show file tree
Hide file tree
Showing 5 changed files with 504 additions and 495 deletions.
1 change: 0 additions & 1 deletion src/library-authoring/EmptyStates.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/require-default-props */
import React, { useContext } from 'react';
import { useParams } from 'react-router';
import { FormattedMessage } from '@edx/frontend-platform/i18n';
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/LibraryAuthoringPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('<LibraryAuthoringPage />', () => {

// Navigate to the collections tab
fireEvent.click(doc.getByRole('tab', { name: 'Collections' }));
expect(getByText('No matching collections found in this library.')).toBeInTheDocument();
expect(doc.getByText('No matching collections found in this library.')).toBeInTheDocument();

// Go back to Home tab
// This step is necessary to avoid the url change leak to other tests
Expand Down
Loading

0 comments on commit 3d89f90

Please sign in to comment.