@@ -89,9 +89,17 @@ def assert_release_metadata(page: Page) -> None:
8989 "Hidden video must not preload on initial page load" ,
9090 )
9191 require (
92- page .locator ("#busuanzi_value_site_pv " ).count () == 1 ,
92+ page .locator ("#busuanzi_value_page_pv " ).count () == 1 ,
9393 "Required page-view counter target is missing" ,
9494 )
95+ require (
96+ page .locator ("#busuanzi_value_page_pv" ).inner_text () == "—" ,
97+ "Local previews must not report production page views" ,
98+ )
99+ require (
100+ page .locator ('script[src*="busuanzi"]' ).count () == 0 ,
101+ "Local previews must not load the production analytics script" ,
102+ )
95103
96104
97105def assert_application_interactions (page : Page ) -> None :
@@ -104,7 +112,11 @@ def assert_application_interactions(page: Page) -> None:
104112
105113 phone = page .locator (".application-phone" )
106114 require (phone .get_attribute ("data-application-phone-mode" ) == "home" , "Phone must open at home" )
107- require (page .locator ("[data-application-phone-type]" ).count () == 12 , "Expected 12 image types" )
115+ require (page .locator ("[data-application-phone-type]" ).count () == 11 , "Expected 11 image types" )
116+ require (
117+ page .locator ('[data-application-phone-type="group_chat_members"]' ).count () == 0 ,
118+ "Members must not duplicate the person index on the phone home screen" ,
119+ )
108120
109121 active_profile = page .locator ('[data-application-phone-uid][aria-pressed="true"]' )
110122 require (active_profile .get_attribute ("data-application-phone-uid" ) == "uid10" , "English must use uid10 initially" )
0 commit comments