Skip to content

Commit c0e6d4e

Browse files
committed
test fullscreen control title attribute
1 parent f99db2d commit c0e6d4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test-utilities/expect/fullscreen.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ function expectFullscreen({
2525
element.classList.contains('leaflet-fullscreen-on'),
2626
),
2727
).toBe(active)
28+
29+
expect(
30+
await page.$eval(
31+
'a.leaflet-control-fullscreen-button',
32+
(element: Element): string | null => element.getAttribute('title'),
33+
),
34+
).toBe(active ? 'Exit Fullscreen' : 'View Fullscreen')
2835
}
2936
}
3037

0 commit comments

Comments
 (0)