@@ -70,13 +70,23 @@ def test_site_map_persists_positions_and_returns_anonymous_counts(self):
7070
7171 def test_ui_contains_route_playlist_and_product_tabs (self ):
7272 html = (Path (__file__ ).parents [1 ] / "static" / "index.html" ).read_text (encoding = "utf-8" )
73- self .assertIn ("data-t= \" guests\" " , html )
74- self .assertIn ("data-t= \" site-map\" " , html )
73+ self .assertIn ("guests:{section:'people' " , html )
74+ self .assertIn ("' site-map':{section:'cameras' " , html )
7575 self .assertIn ("showRoutePlaylist" , html )
7676 self .assertIn ("goToRouteClip" , html )
7777 self .assertIn ("לחצו כדי לעבור לקליפ הזה" , html )
7878 self .assertIn ("נגן קליפים לפי מסלול" , html )
7979
80+ def test_ui_has_stable_commercial_navigation_and_progressive_disclosure (self ):
81+ html = (Path (__file__ ).parents [1 ] / "static" / "index.html" ).read_text (encoding = "utf-8" )
82+ for section in ("home" , "events" , "people" , "cameras" , "system" ):
83+ self .assertIn (f'data-section="{ section } "' , html )
84+ self .assertIn ("faceid-last-screen" , html )
85+ self .assertIn ("faceid-recent-screens" , html )
86+ self .assertIn ("faceid-expert-mode" , html )
87+ self .assertIn ("function goBack()" , html )
88+ self .assertIn ("כלים למומחים" , html )
89+
8090
8191if __name__ == "__main__" :
8292 unittest .main ()
0 commit comments