@@ -82,7 +82,7 @@ describe("ExistingBrowser", () => {
8282 } ) ;
8383
8484 it ( 'should extend meta-info with "testXReqId" field' , ( ) => {
85- const browser = mkBrowser_ ( { } , { testXReqId : "12345" } ) ;
85+ const browser = mkBrowser_ ( { } , { state : { testXReqId : "12345" } } ) ;
8686
8787 assert . propertyVal ( browser . meta , "testXReqId" , "12345" ) ;
8888 } ) ;
@@ -177,10 +177,10 @@ describe("ExistingBrowser", () => {
177177
178178 it ( 'should add "X-Request-ID" header' , async ( ) => {
179179 crypto . randomUUID . returns ( "67890" ) ;
180- const testXReqId = "12345" ;
180+ const state = { testXReqId : "12345" } ;
181181 const request = { headers : { } } ;
182182
183- await initBrowser_ ( mkBrowser_ ( { } , { testXReqId } ) ) ;
183+ await initBrowser_ ( mkBrowser_ ( { } , { state } ) ) ;
184184
185185 const { transformRequest } = webdriverio . attach . lastCall . args [ 0 ] ;
186186 transformRequest ( request ) ;
@@ -1060,15 +1060,6 @@ describe("ExistingBrowser", () => {
10601060 } ) ;
10611061
10621062 describe ( "quit" , ( ) => {
1063- it ( "should overwrite state field" , async ( ) => {
1064- const browser = await initBrowser_ ( ) ;
1065- const state = browser . state ;
1066-
1067- browser . quit ( ) ;
1068-
1069- assert . notEqual ( state , browser . state ) ;
1070- } ) ;
1071-
10721063 it ( "should keep process id in meta" , async ( ) => {
10731064 const browser = await initBrowser_ ( ) ;
10741065 const pid = browser . meta . pid ;
0 commit comments