Skip to content

Commit

Permalink
SWC-6548 - Fix broken test (likely caused by MUI upgrade)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros committed Nov 9, 2023
1 parent 0b52634 commit 503b287
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { act, render, screen, waitFor } from '@testing-library/react'
import React from 'react'
import { createWrapper } from '../../testutils/TestingLibraryUtils'
import { SynapseClient } from '../../index'
import SynapseClient from '../../synapse-client'
import queryResultBundleJson from '../../mocks/query/syn51735464GroupBySpecies'
import TimelinePlotSpeciesSelector, {
TimelinePlotSpeciesSelectorProps,
Expand Down Expand Up @@ -57,7 +57,7 @@ describe('TimelinePlotSpeciesSelector tests', () => {
)
// verify the first row has been selected by default
expect(setSpecies).toHaveBeenCalledWith('Mus musculus')
const dropdown = await screen.findByRole('button')
const dropdown = await screen.findByRole('combobox')
await userEvent.click(dropdown)
await userEvent.click(await screen.findByText('Saccharomyces'))
expect(setSpecies).toHaveBeenCalledWith('Saccharomyces')
Expand Down

0 comments on commit 503b287

Please sign in to comment.