Guard legacy player client against secondary-device audio playback
All checks were successful
CI / test-and-quality (push) Successful in 2m58s
CI / test-and-quality (pull_request) Successful in 3m0s

This commit is contained in:
2026-03-02 00:00:40 +00:00
parent b977016ef4
commit ee025e8deb
2 changed files with 7 additions and 0 deletions

View File

@@ -1035,6 +1035,10 @@ class UiScreenTests(TestCase):
self.assertContains(response, "clearPlayerShellFatalError")
self.assertContains(response, "updatePlayerShellErrorBoundary")
self.assertContains(response, "player_shell_runtime_error")
self.assertContains(response, "installSecondaryDeviceAudioGuard")
self.assertContains(response, "silencePlayerMediaElements")
self.assertContains(response, "querySelectorAll(\"audio,video\")")
self.assertNotContains(response, "<audio")
self.assertContains(response, "window.addEventListener(\"error\"")
@override_settings(USE_SPA_UI=False)