@@ -88,7 +88,7 @@ export default {
8888 ' Content-Type' : ' image/png' ,
8989 },
9090 });
91- },
91+ },
9292}
9393```
9494
@@ -111,7 +111,7 @@ export default {
111111 const browser = await launch (env .MYBROWSER );
112112 const page = await browser .newPage ();
113113
114- // Start tracing before navigating to the page
114+ // Start tracing before navigating to the page
115115 await page .context ().tracing .start ({ screenshots: true , snapshots: true });
116116
117117 await page .goto (' https://demo.playwright.dev/todomvc' );
@@ -128,7 +128,7 @@ export default {
128128 await newTodo .press (' Enter' );
129129 }
130130
131- // Stop tracing and save the trace to a zip file
131+ // Stop tracing and save the trace to a zip file
132132 await page .context ().tracing .stop ({ path: ' trace.zip' });
133133 await browser .close ();
134134 const file = await fs .promises .readFile (' trace.zip' );
@@ -179,7 +179,7 @@ export default {
179179 await Promise .all (TODO_ITEMS .map (
180180 (value , index ) => expect (page .getByTestId (' todo-title' ).nth (index )).toHaveText (value )
181181 ));
182- },
182+ },
183183};
184184```
185185
@@ -203,16 +203,16 @@ In order to facilitate browser session management, we've extended the Playwright
203203
204204``` json
205205[
206- {
207- "connectionId" : " 2a2246fa-e234-4dc1-8433-87e6cee80145" ,
208- "connectionStartTime" : 1711621704607 ,
209- "sessionId" : " 478f4d7d-e943-40f6-a414-837d3736a1dc" ,
210- "startTime" : 1711621703708
211- },
212- {
213- "sessionId" : " 565e05fb-4d2a-402b-869b-5b65b1381db7" ,
214- "startTime" : 1711621703808
215- }
206+ {
207+ "connectionId" : " 2a2246fa-e234-4dc1-8433-87e6cee80145" ,
208+ "connectionStartTime" : 1711621704607 ,
209+ "sessionId" : " 478f4d7d-e943-40f6-a414-837d3736a1dc" ,
210+ "startTime" : 1711621703708
211+ },
212+ {
213+ "sessionId" : " 565e05fb-4d2a-402b-869b-5b65b1381db7" ,
214+ "startTime" : 1711621703808
215+ }
216216]
217217```
218218
@@ -224,20 +224,20 @@ Notice that the session `478f4d7d-e943-40f6-a414-837d3736a1dc` has an active wor
224224
225225``` json
226226[
227- {
228- "closeReason" : 2 ,
229- "closeReasonText" : " BrowserIdle" ,
230- "endTime" : 1711621769485 ,
231- "sessionId" : " 478f4d7d-e943-40f6-a414-837d3736a1dc" ,
232- "startTime" : 1711621703708
233- },
234- {
235- "closeReason" : 1 ,
236- "closeReasonText" : " NormalClosure" ,
237- "endTime" : 1711123501771 ,
238- "sessionId" : " 2be00a21-9fb6-4bb2-9861-8cd48e40e771" ,
239- "startTime" : 1711123430918
240- }
227+ {
228+ "closeReason" : 2 ,
229+ "closeReasonText" : " BrowserIdle" ,
230+ "endTime" : 1711621769485 ,
231+ "sessionId" : " 478f4d7d-e943-40f6-a414-837d3736a1dc" ,
232+ "startTime" : 1711621703708
233+ },
234+ {
235+ "closeReason" : 1 ,
236+ "closeReasonText" : " NormalClosure" ,
237+ "endTime" : 1711123501771 ,
238+ "sessionId" : " 2be00a21-9fb6-4bb2-9861-8cd48e40e771" ,
239+ "startTime" : 1711123430918
240+ }
241241]
242242```
243243
0 commit comments