Skip to content

Commit

Permalink
test fullscreen control title attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 12, 2024
1 parent f99db2d commit c0e6d4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test-utilities/expect/fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ function expectFullscreen({
element.classList.contains('leaflet-fullscreen-on'),
),
).toBe(active)

expect(
await page.$eval(
'a.leaflet-control-fullscreen-button',
(element: Element): string | null => element.getAttribute('title'),
),
).toBe(active ? 'Exit Fullscreen' : 'View Fullscreen')
}
}

Expand Down

0 comments on commit c0e6d4e

Please sign in to comment.