Skip to content

Commit

Permalink
test decorative accessibility tutorial marker images
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 3, 2024
1 parent a88cfbc commit 54f5ea1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tutorial/accessibility/decorative.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
activeElementClassName,
expectImagesLoaded,
expectOpenStreetMapTilesLoaded,
pressTab,
setBrowserConfiguration,
Expand All @@ -25,6 +26,17 @@ describe('decorative accessibility tutorial', (): void => {
})

describe('marker', (): void => {
describe('images', (): void => {
describe.each([
`../../../leaflet/images/marker-icon${deviceScaleFactor === 2 ? '-2x' : ''}.png`,
'../../../leaflet/images/marker-shadow.png',
])('src="%s"', (src: string): void => {
/* eslint-disable-next-line jest/expect-expect --
`expectImagesLoaded` returns assertions */
it('should load', expectImagesLoaded(src))
})
})

describe('on repeated `Tab`-presses', (): void => {
it('should not obtain focus', async (): Promise<void> => {
const tabPressesMaximum = 20
Expand Down

0 comments on commit 54f5ea1

Please sign in to comment.