@@ -103,6 +103,7 @@ test('dashboard templates expose a settings page and timezone context in activit
103103
104104test ( 'guardrails authoring moved to a top-level page while settings keeps the general switch' , ( ) => {
105105 const template = readHelperDisclosureTemplateSource ( ) ;
106+ const css = readFixture ( '../../css/dashboard.css' ) ;
106107
107108 assert . match ( template , / < d i v c l a s s = " s e t t i n g s - s u b n a v " > [ \s \S ] * c l a s s = " s e t t i n g s - s u b n a v - b t n a c t i v e " [ \s \S ] * > G e n e r a l < \/ b u t t o n > / ) ;
108109 assert . match ( template , / < d i v x - s h o w = " p a g e = = = ' g u a r d r a i l s ' " > [ \s \S ] * < h 2 > G u a r d r a i l s < \/ h 2 > / ) ;
@@ -111,5 +112,16 @@ test('guardrails authoring moved to a top-level page while settings keeps the ge
111112 assert . match ( template , / x - m o d e l = " g u a r d r a i l F o r m \. t y p e " / ) ;
112113 assert . match ( template , / x - e f f e c t = " g u a r d r a i l T y p e s \. l e n g t h ; g u a r d r a i l F o r m \. t y p e ; \$ n e x t T i c k \( \( \) = > s y n c G u a r d r a i l T y p e S e l e c t V a l u e \( \) \) " / ) ;
113114 assert . match ( template , / x - m o d e l = " g u a r d r a i l F o r m \. u s e r _ p a t h " [ ^ > ] * a r i a - l a b e l = " G u a r d r a i l u s e r p a t h " / ) ;
114- assert . match ( template , / O p t i o n a l b a s e u s e r p a t h f o r i n t e r n a l a u x i l i a r y r e w r i t e r e q u e s t s \. W h e n e m p t y , t h e c a l l e r u s e r p a t h i s r e u s e d \. / ) ;
115+ assert . match ( template , / O n l y u s e d f o r a u x i l i a r y r e w r i t e \( l l m _ b a s e d _ a l t e r i n g \) g u a r d r a i l s ; i g n o r e d f o r o t h e r g u a r d r a i l t y p e s \. / ) ;
116+ assert . match ( template , / < f i e l d s e t c l a s s = " a l i a s - f o r m - f i e l d a l i a s - f o r m - f i e l d - w i d e a l i a s - f o r m - f i e l d - f i e l d s e t " [ ^ > ] * : a r i a - d e s c r i b e d b y = " f i e l d \. h e l p \? ' g u a r d r a i l - f i e l d - h e l p - ' \+ f i e l d \. k e y : n u l l " / ) ;
117+ assert . match ( template , / < l e g e n d c l a s s = " a l i a s - f o r m - f i e l d - l e g e n d " x - t e x t = " f i e l d \. l a b e l " > < \/ l e g e n d > / ) ;
118+ assert . match ( template , / < s m a l l c l a s s = " a l i a s - f o r m - h i n t " : i d = " ' g u a r d r a i l - f i e l d - h e l p - ' \+ f i e l d \. k e y " x - s h o w = " f i e l d \. h e l p " x - t e x t = " f i e l d \. h e l p " > < \/ s m a l l > / ) ;
119+
120+ const fieldsetRule = readCSSRule ( css , '.alias-form-field-fieldset' ) ;
121+ assert . match ( fieldsetRule , / b o r d e r : \s * 0 / ) ;
122+ assert . match ( fieldsetRule , / p a d d i n g : \s * 0 / ) ;
123+
124+ const legendRule = readCSSRule ( css , '.alias-form-field-legend' ) ;
125+ assert . match ( legendRule , / t e x t - t r a n s f o r m : \s * u p p e r c a s e / ) ;
126+ assert . match ( legendRule , / l e t t e r - s p a c i n g : \s * 0 \. 5 p x / ) ;
115127} ) ;
0 commit comments