Skip to content

Commit

Permalink
#1541 - add delay null to downloadStatusTable userEvent
Browse files Browse the repository at this point in the history
tests keep timing out so this might help?
  • Loading branch information
louise-davies committed Oct 13, 2023
1 parent 7fe8811 commit 848d799
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Download Status Table', () => {
let user: ReturnType<typeof userEvent.setup>;

beforeEach(() => {
user = userEvent.setup();
user = userEvent.setup({ delay: null });

(downloadDeleted as jest.Mock).mockImplementation(() => Promise.resolve());
(fetchDownloads as jest.Mock).mockImplementation(() =>
Expand Down Expand Up @@ -189,7 +189,7 @@ describe('Download Status Table', () => {

it('should sort data when headers are clicked', async () => {
// use skipHover to avoid triggering sort tooltips which slow the test down
user = userEvent.setup({ skipHover: true });
user = userEvent.setup({ delay: null, skipHover: true });
renderComponent();

// Table is sorted by createdAt desc by default
Expand Down

0 comments on commit 848d799

Please sign in to comment.