Skip to content

Commit

Permalink
983: Uncomment test
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenkleinle committed Mar 26, 2024
1 parent 67ae5fd commit 45bb136
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/__tests__/ImageCarousel.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ describe('ImageCarousel', () => {
// as the image is then rendered and accessible by role, even without swiping
swipeable.instance.loadImage(1) // load the second image

const swipedDisplayedImages = await findAllByRole('image')
expect(swipedDisplayedImages).toHaveLength(2)

const swipedFirstImage = swipedDisplayedImages[0]
expect(swipedFirstImage).toBe(firstImage)

const secondImage = swipedDisplayedImages[1]
expect(getUri(secondImage)).toBe('Arbeitsschuhe')
// TODO #1010: Uncomment after upgrading react-native and fixing roles
// const swipedDisplayedImages = await findAllByRole('image')
// expect(swipedDisplayedImages).toHaveLength(2)
//
// const swipedFirstImage = swipedDisplayedImages[0]
// expect(swipedFirstImage).toBe(firstImage)
//
// const secondImage = swipedDisplayedImages[1]
// expect(getUri(secondImage)).toBe('Arbeitsschuhe')
})
})

0 comments on commit 45bb136

Please sign in to comment.