File tree Expand file tree Collapse file tree
extensions/browser/src/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,9 +316,13 @@ describe("browser client", () => {
316316 browserScreenshotAction ( "http://127.0.0.1:18791" , { targetId : "t-default" } ) ,
317317 ) . resolves . toMatchObject ( { ok : true , path : "/tmp/a.png" } ) ;
318318
319- expect ( calls . some ( ( c ) => c . url . endsWith ( "/tabs" ) ) ) . toBe ( true ) ;
320- expect ( calls . some ( ( c ) => c . url . endsWith ( "/doctor" ) ) ) . toBe ( true ) ;
321- expect ( calls . some ( ( c ) => c . url . endsWith ( "/doctor?profile=openclaw&deep=true" ) ) ) . toBe ( true ) ;
319+ expect ( calls . map ( ( call ) => call . url ) ) . toEqual (
320+ expect . arrayContaining ( [
321+ expect . stringMatching ( / \/ t a b s $ / ) ,
322+ expect . stringMatching ( / \/ d o c t o r $ / ) ,
323+ expect . stringMatching ( / \/ d o c t o r \? p r o f i l e = o p e n c l a w & d e e p = t r u e $ / ) ,
324+ ] ) ,
325+ ) ;
322326 const open = calls . find ( ( c ) => c . url . endsWith ( "/tabs/open" ) ) ;
323327 expect ( open ?. init ?. method ) . toBe ( "POST" ) ;
324328
You can’t perform that action at this time.
0 commit comments