File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -838,14 +838,18 @@ describe("config view", () => {
838838 const details = queryRequired ( container , ".config-diff" , HTMLDetailsElement ) ;
839839 details . open = true ;
840840 details . dispatchEvent ( new Event ( "toggle" ) ) ;
841- expect ( normalizedText ( container ) ) . toContain ( "gateway.mode" ) ;
841+ expect (
842+ queryRequired ( container , ".config-diff__item" , HTMLElement )
843+ . querySelector ( ".config-diff__path" )
844+ ?. textContent ?. trim ( ) ,
845+ ) . toBe ( "gateway.mode" ) ;
842846
843847 props . raw = props . originalRaw ;
844848 props . formValue = props . originalValue ;
845849 rerender ( ) ;
846850
847851 expect ( container . querySelector ( ".config-diff" ) ) . toBeNull ( ) ;
848- expect ( normalizedText ( container ) ) . toContain ( "No changes" ) ;
852+ expect ( container . querySelector ( ".config-status" ) ?. textContent ?. trim ( ) ) . toBe ( "No changes" ) ;
849853 } ) ;
850854
851855 it ( "renders structured SecretRef values without stringifying" , ( ) => {
You can’t perform that action at this time.
0 commit comments