@@ -49,8 +49,10 @@ test('config template keeps expected config tabs in top and side navigation', ()
4949 assert . match ( html , / c l a s s = " c o d e x - c o n f i g - g r i d " / ) ;
5050 assert . match ( html , / o n S e t t i n g s T a b C l i c k \( ' b a c k u p ' \) / ) ;
5151 assert . match ( html , / o n S e t t i n g s T a b C l i c k \( ' t r a s h ' \) / ) ;
52+ assert . match ( html , / o n S e t t i n g s T a b C l i c k \( ' d e v i c e ' \) / ) ;
5253 assert . match ( html , / s e t t i n g s T a b = = = ' b a c k u p ' / ) ;
5354 assert . match ( html , / s e t t i n g s T a b = = = ' t r a s h ' / ) ;
55+ assert . match ( html , / s e t t i n g s T a b = = = ' d e v i c e ' / ) ;
5456 assert . match ( html , / s e s s i o n T r a s h C o u n t / ) ;
5557 assert . match ( html , / i d = " s i d e - t a b - m a r k e t " / ) ;
5658 assert . match ( html , / i d = " t a b - m a r k e t " / ) ;
@@ -107,17 +109,29 @@ test('config template keeps expected config tabs in top and side navigation', ()
107109 assert . doesNotMatch ( html , / c l a s s = " m a r k e t - e c o s y s t e m - g r i d " / ) ;
108110 assert . match ( html , / i d = " s e t t i n g s - t a b - b a c k u p " / ) ;
109111 assert . match ( html , / i d = " s e t t i n g s - t a b - t r a s h " / ) ;
112+ assert . match ( html , / i d = " s e t t i n g s - t a b - d e v i c e " / ) ;
110113 assert . match ( html , / r o l e = " t a b " / ) ;
111114 assert . match ( html , / a r i a - c o n t r o l s = " s e t t i n g s - p a n e l - b a c k u p " / ) ;
112115 assert . match ( html , / a r i a - c o n t r o l s = " s e t t i n g s - p a n e l - t r a s h " / ) ;
116+ assert . match ( html , / a r i a - c o n t r o l s = " s e t t i n g s - p a n e l - d e v i c e " / ) ;
113117 assert . match ( html , / : a r i a - s e l e c t e d = " s e t t i n g s T a b = = = ' b a c k u p ' " / ) ;
114118 assert . match ( html , / : a r i a - s e l e c t e d = " s e t t i n g s T a b = = = ' t r a s h ' " / ) ;
119+ assert . match ( html , / : a r i a - s e l e c t e d = " s e t t i n g s T a b = = = ' d e v i c e ' " / ) ;
115120 assert . match ( html , / i d = " s e t t i n g s - t a b - b a c k u p " [ \s \S ] * : t a b i n d e x = " s e t t i n g s T a b = = = ' b a c k u p ' \? 0 : - 1 " / ) ;
116121 assert . match ( html , / i d = " s e t t i n g s - t a b - t r a s h " [ \s \S ] * : t a b i n d e x = " s e t t i n g s T a b = = = ' t r a s h ' \? 0 : - 1 " / ) ;
122+ assert . match ( html , / i d = " s e t t i n g s - t a b - d e v i c e " [ \s \S ] * : t a b i n d e x = " s e t t i n g s T a b = = = ' d e v i c e ' \? 0 : - 1 " / ) ;
117123 assert . match ( html , / i d = " s e t t i n g s - p a n e l - b a c k u p " / ) ;
118124 assert . match ( html , / i d = " s e t t i n g s - p a n e l - t r a s h " / ) ;
125+ assert . match ( html , / i d = " s e t t i n g s - p a n e l - d e v i c e " / ) ;
119126 assert . match ( html , / < d i v [ \s \S ] * v - s h o w = " s e t t i n g s T a b = = = ' b a c k u p ' " [ \s \S ] * i d = " s e t t i n g s - p a n e l - b a c k u p " [ \s \S ] * a r i a - l a b e l l e d b y = " s e t t i n g s - t a b - b a c k u p " > / ) ;
120127 assert . match ( html , / < d i v [ \s \S ] * v - s h o w = " s e t t i n g s T a b = = = ' t r a s h ' " [ \s \S ] * i d = " s e t t i n g s - p a n e l - t r a s h " [ \s \S ] * a r i a - l a b e l l e d b y = " s e t t i n g s - t a b - t r a s h " > / ) ;
128+ assert . match ( html , / < d i v [ \s \S ] * v - s h o w = " s e t t i n g s T a b = = = ' d e v i c e ' " [ \s \S ] * i d = " s e t t i n g s - p a n e l - d e v i c e " [ \s \S ] * a r i a - l a b e l l e d b y = " s e t t i n g s - t a b - d e v i c e " > / ) ;
129+ assert . match ( html , / i d = " s e t t i n g s - p a n e l - d e v i c e " [ \s \S ] * ?< s p a n c l a s s = " s e l e c t o r - t i t l e " > 配 置 重 置 < \/ s p a n > / ) ;
130+ assert . match ( html , / i d = " s e t t i n g s - p a n e l - d e v i c e " [ \s \S ] * ?@ c l i c k = " r e s e t C o n f i g " / ) ;
131+ assert . doesNotMatch (
132+ html . match ( / i d = " p a n e l - c o n f i g - p r o v i d e r " [ \s \S ] * ?< \/ t e m p l a t e > / ) ?. [ 0 ] || '' ,
133+ / < s p a n c l a s s = " s e l e c t o r - t i t l e " > 配 置 重 置 < \/ s p a n > /
134+ ) ;
121135 assert . match ( html , / c l a s s = " s e t t i n g s - t a b - a c t i o n s t r a s h - h e a d e r - a c t i o n s " / ) ;
122136 assert . match ( html , / < b u t t o n c l a s s = " b t n - t o o l b t n - t o o l - c o m p a c t " @ c l i c k = " l o a d S e s s i o n T r a s h \( \{ f o r c e R e f r e s h : t r u e \} \) " / ) ;
123137 assert . match ( html , / < b u t t o n c l a s s = " b t n - t o o l b t n - t o o l - c o m p a c t " @ c l i c k = " c l e a r S e s s i o n T r a s h " / ) ;
@@ -326,6 +340,7 @@ test('web ui script defines provider mode metadata for codex only', () => {
326340 assert . match ( appScript , / s e s s i o n T r a s h H a s M o r e I t e m s \( \) / ) ;
327341 assert . match ( appScript , / s e s s i o n T r a s h H i d d e n C o u n t \( \) / ) ;
328342 assert . match ( appScript , / n o r m a l i z e S e t t i n g s T a b \( t a b \) / ) ;
343+ assert . match ( appScript , / t a b = = = ' t r a s h ' \| \| t a b = = = ' d e v i c e ' / ) ;
329344 assert . match ( appScript , / s w i t c h S e t t i n g s T a b \( t a b , \s * o p t i o n s = \{ \} \) / ) ;
330345 assert . match ( appScript , / l o a d S e s s i o n T r a s h \( o p t i o n s = \{ \} \) / ) ;
331346 assert . match ( appScript , / l o a d M o r e S e s s i o n T r a s h I t e m s \( \) / ) ;
0 commit comments