diff --git a/assets/js/ui-controls.js b/assets/js/ui-controls.js index 287af21..54e6255 100644 --- a/assets/js/ui-controls.js +++ b/assets/js/ui-controls.js @@ -473,6 +473,9 @@ const currentTime = AppState.player.currentTime(); AppState.player.currentTime(currentTime + 10); // Skip forward 10 seconds showToast('Skipped forward 10s', 1000); + if (window.ScreenReader) { + ScreenReader.statusUpdate('video', 'skipped forward 10 seconds', 'seek'); + } } } else { // Swipe right - seek backward @@ -480,6 +483,9 @@ const currentTime = AppState.player.currentTime(); AppState.player.currentTime(Math.max(0, currentTime - 10)); // Skip back 10 seconds showToast('Skipped back 10s', 1000); + if (window.ScreenReader) { + ScreenReader.statusUpdate('video', 'skipped back 10 seconds', 'seek'); + } } } } diff --git a/screen-reader-test.html b/screen-reader-test.html new file mode 100644 index 0000000..51386a3 --- /dev/null +++ b/screen-reader-test.html @@ -0,0 +1,390 @@ + + + + + + Screen Reader Support Test - Dodgers Stream Theater + + + + +
+

Screen Reader Support Test Suite

+

This test validates the ARIA live regions and screen reader announcements implementation for the Dodgers Stream Theater application.

+ + +
+
+
+
+
+
+
+ +
+

๐Ÿš€ Stream Status Tests

+

Test announcements for different stream states.

+ + + + + +
Results will appear here...
+
+ +
+

๐ŸŒ Connection Status Tests

+

Test announcements for connection state changes.

+ + + + +
Results will appear here...
+
+ +
+

๐Ÿ‘ฅ Viewer Count Tests

+

Test announcements for viewer count changes (threshold-based to prevent spam).

+ + + + + +
Results will appear here...
+
+ +
+

โšก System Message Tests

+

Test announcements for admin actions and system notifications.

+ + + + +
Results will appear here...
+
+ +
+

๐Ÿ’ฌ Message Group Tests

+

Test announcements for batch message loading.

+ + + +
Results will appear here...
+
+ +
+

๐Ÿ”ง Form Validation Tests

+

Test announcements for form validation feedback.

+ + + + +
Results will appear here...
+
+ +
+

๐Ÿ“Š Activity Feed Tests

+

Test announcements for activity feed updates.

+ + + +
Results will appear here...
+
+ +
+

โš™๏ธ Status Update Tests

+

Test announcements for status updates (uptime, quality, etc.).

+ + + + +
Results will appear here...
+
+ +
+

๐Ÿงช Implementation Status

+
+

ARIA Live Regions Check

+
    +
  • โœ… Screen reader announcement regions present
  • +
  • โœ… Assertive live regions configured
  • +
  • โœ… Polite live regions configured
  • +
  • โœ… Screen reader only class applied
  • +
  • โœ… ARIA atomic attribute set
  • +
+ +

JavaScript Integration Check

+
    +
  • โ“ Screen Reader module loaded
  • +
  • โ“ All announcement functions available
  • +
  • โ“ Announcement queue system functional
  • +
+
+ +
+ +
+

๐ŸŽฏ Test Results Summary

+
+

Total Tests Run: 0

+

Passed: 0

+

Failed: 0

+

Success Rate: 0%

+
+ +
+
+ + + + + + +