@@ -164,6 +164,34 @@ test("every rendered page has one heading and image alternatives", async () => {
164164 }
165165} ) ;
166166
167+ test ( "keeps the site-audit copy and a11y fixes" , async ( ) => {
168+ assert . match ( index , / S e l e c t e d o n - d e v i c e e n g i n e / ) ;
169+ assert . match ( index , / W h i s p e r K i t \/ C o r e M L , P a r a k e e t , A p p l e S p e e c h , O N N X / ) ;
170+ assert . doesNotMatch (
171+ index ,
172+ / < s p a n c l a s s = " r o u t e - n a m e " > W h i s p e r K i t \/ C o r e M L < \/ s p a n > / ,
173+ ) ;
174+
175+ const clipboard = await readFile (
176+ join ( outputRoot , "features/clipboard-preservation/index.html" ) ,
177+ "utf8" ,
178+ ) ;
179+ assert . match ( clipboard , / O n - d e v i c e t r a n s c r i p t i o n a f t e r m o d e l d o w n l o a d / ) ;
180+ assert . doesNotMatch ( clipboard , / W o r k s o f f l i n e / ) ;
181+
182+ for ( const page of pages ) {
183+ const rel = relative ( outputRoot , page ) ;
184+ if ( ! rel . startsWith ( "features/" ) || rel === "features/index.html" ) continue ;
185+ const html = await readFile ( page , "utf8" ) ;
186+ assert . doesNotMatch ( html , / a r i a - l a b e l l e d b y = " f e a t u r e - c o n t e n t - t i t l e " / ) ;
187+ assert . doesNotMatch ( html , / i d = " f e a t u r e - c o n t e n t - t i t l e " / ) ;
188+ }
189+
190+ assert . match ( script , / a r i a - l i v e " , " p o l i t e " / ) ;
191+ assert . match ( script , / a n n o u n c e C o p y \( " C o p i e d " \) / ) ;
192+ assert . match ( script , / a n n o u n c e C o p y \( " P r e s s ⌘ C " \) / ) ;
193+ } ) ;
194+
167195test ( "all rendered local references resolve" , async ( ) => {
168196 const references = new Set ( ) ;
169197 for ( const page of pages ) {
0 commit comments