Skip to content

Commit

Permalink
Fix test (use non-barrel import of CascadingMenu to fix test mock)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 10, 2023
1 parent 7129ef7 commit 882f0a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/app-core/src/ui/App/ViewMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ import {
bindPopover,
usePopupState,
} from 'material-ui-popup-state/hooks'
import CascadingMenu from '@jbrowse/core/ui/CascadingMenu'

// icons
import MenuIcon from '@mui/icons-material/Menu'
import ArrowDownward from '@mui/icons-material/ArrowDownward'
import ArrowUpward from '@mui/icons-material/ArrowUpward'
import { CascadingMenu } from '@jbrowse/core/ui'

const ViewMenu = observer(function ({
model,
Expand Down
5 changes: 2 additions & 3 deletions products/jbrowse-web/src/tests/BasicLinearGenomeView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ beforeEach(() => {
doBeforeEach()
})

const delay = { timeout: 30000 }
const delay = { timeout: 10000 }
const opts = [{}, delay]

test('access about menu', async () => {
Expand Down Expand Up @@ -123,8 +123,7 @@ test('opens reference sequence track and expects zoom in message', async () => {
}, 30000)

test('click to display center line with correct value', async () => {
const { view, findAllByText, findByTestId, findByText } = await createView()
await findAllByText('ctgA', ...opts)
const { view, findByTestId, findByText } = await createView()
fireEvent.click(await findByTestId(hts('bigbed_genes'), ...opts))

// opens the view menu and selects show center line
Expand Down

0 comments on commit 882f0a1

Please sign in to comment.