Skip to content

Commit

Permalink
EDSC-3833: trying to make these tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Poreh authored and macrouch committed Aug 9, 2023
1 parent 29ba0ea commit 577dd02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/src/js/components/Facets/__tests__/Facets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ describe('Facets Features Map Imagery component', () => {
const customizableComp = screen.getByText('Customizable')
expect(customizableComp).toBeInTheDocument()
expect(customizableComp.children).toHaveLength(1)
await user.hover(customizableComp.children[0])
await waitFor(async () => {
await user.hover(customizableComp.children[0])
})
const tooltip = screen.getByRole('tooltip')
expect(tooltip).toBeInTheDocument()
expect(getByText(tooltip, 'Include only collections that support customization (temporal, spatial, or variable subsetting, reformatting, etc.)')).toBeInTheDocument()
Expand Down Expand Up @@ -645,8 +647,6 @@ describe('Facets Features Map Imagery component', () => {

await user.click(getAllByRole(container, 'button').at(5))

await waitFor(() => { screen.getByRole('button', { name: /View All/i }) })

expect(screen.getByRole('button', { name: /View All/i })).toBeInTheDocument()

await user.click(screen.getByRole('button', { name: /View All/i }))
Expand Down

0 comments on commit 577dd02

Please sign in to comment.