diff --git a/frontend/src/components/PlexPlayer.strictmode.dom.test.tsx b/frontend/src/components/PlexPlayer.strictmode.dom.test.tsx new file mode 100644 index 00000000..149037b8 --- /dev/null +++ b/frontend/src/components/PlexPlayer.strictmode.dom.test.tsx @@ -0,0 +1,101 @@ +// @vitest-environment jsdom +// +// The Plex player must start playing by itself — also when React mounts it, unmounts it and mounts +// it again, which StrictMode does to every component in development. +// +// Bug hunt 2026-09, found on localdev: the player's "still alive" flag (every play() is gated on it, +// so a late one cannot start a detached