diff --git a/tests/test_video_side_shell.py b/tests/test_video_side_shell.py index 3874d119..39fb9bf6 100644 --- a/tests/test_video_side_shell.py +++ b/tests/test_video_side_shell.py @@ -376,6 +376,21 @@ def test_video_side_has_real_url_routing(): assert "'library'" in _JS +def test_video_top_level_pages_are_deep_linked(): + # Every sidebar page (not just detail) deep-links to '/' + pageId, mirroring + # the music side — pushState on nav, parse + restore on reload/Back. + assert "parsePagePath" in _JS and "buildPagePath" in _JS + assert "videoPage" in _JS # history state tag for pages + # The nav anchors carry the real path (so ⌘/middle-click open a new tab) and + # no longer point at the dead '#'. + assert 'data-video-page="video-search" href="/video-search"' in _INDEX + assert 'data-video-page="video-library" href="/video-library"' in _INDEX + assert 'href="#"' not in _block( # none left in the video nav block + _INDEX, r'