@@ -220,7 +220,7 @@ func TestPageEvents(t *testing.T) {
220220 "waitingForDebugger" : false ,
221221 },
222222 })
223- ec .waitFor (t , "tab_opened " , 2 * time .Second )
223+ ec .waitFor (t , "page_tab_opened " , 2 * time .Second )
224224
225225 srv .sendToMonitor (t , map [string ]any {
226226 "method" : "Page.frameNavigated" , "sessionId" : "sess-page" ,
@@ -231,7 +231,7 @@ func TestPageEvents(t *testing.T) {
231231 },
232232 },
233233 })
234- ev := ec .waitFor (t , "navigation " , 2 * time .Second )
234+ ev := ec .waitFor (t , "page_navigation " , 2 * time .Second )
235235 assert .Equal (t , events .CategoryPage , ev .Category )
236236 assert .Equal (t , "Page.frameNavigated" , ev .Source .Event )
237237 var data map [string ]any
@@ -242,7 +242,7 @@ func TestPageEvents(t *testing.T) {
242242 "method" : "Page.domContentEventFired" , "sessionId" : "sess-page" ,
243243 "params" : map [string ]any {"timestamp" : 1000.0 },
244244 })
245- ev2 := ec .waitFor (t , "dom_content_loaded " , 2 * time .Second )
245+ ev2 := ec .waitFor (t , "page_dom_content_loaded " , 2 * time .Second )
246246 assert .Equal (t , events .CategoryPage , ev2 .Category )
247247 var data2 map [string ]any
248248 require .NoError (t , json .Unmarshal (ev2 .Data , & data2 ))
@@ -282,7 +282,7 @@ func TestTabOpened(t *testing.T) {
282282 "waitingForDebugger" : false ,
283283 },
284284 })
285- ev := ec .waitFor (t , "tab_opened " , 2 * time .Second )
285+ ev := ec .waitFor (t , "page_tab_opened " , 2 * time .Second )
286286 assert .Equal (t , events .CategoryPage , ev .Category )
287287 assert .Equal (t , "Target.attachedToTarget" , ev .Source .Event )
288288 var data map [string ]any
@@ -305,7 +305,7 @@ func TestTabOpened(t *testing.T) {
305305 "waitingForDebugger" : false ,
306306 },
307307 })
308- ec .assertNone (t , "tab_opened " , 200 * time .Millisecond )
308+ ec .assertNone (t , "page_tab_opened " , 200 * time .Millisecond )
309309 })
310310}
311311
@@ -329,15 +329,15 @@ func TestBindingAndTimeline(t *testing.T) {
329329 assert .Equal (t , "Runtime.bindingCalled" , ev .Source .Event )
330330 })
331331
332- t .Run ("scroll_settled " , func (t * testing.T ) {
332+ t .Run ("interaction_scroll_settled " , func (t * testing.T ) {
333333 srv .sendToMonitor (t , map [string ]any {
334334 "method" : "Runtime.bindingCalled" ,
335335 "params" : map [string ]any {
336336 "name" : "__kernelEvent" ,
337- "payload" : `{"type":"scroll_settled ","from_x":0,"from_y":0,"to_x":0,"to_y":500,"target_selector":"body"}` ,
337+ "payload" : `{"type":"interaction_scroll_settled ","from_x":0,"from_y":0,"to_x":0,"to_y":500,"target_selector":"body"}` ,
338338 },
339339 })
340- ev := ec .waitFor (t , "scroll_settled " , 2 * time .Second )
340+ ev := ec .waitFor (t , "interaction_scroll_settled " , 2 * time .Second )
341341 assert .Equal (t , events .CategoryInteraction , ev .Category )
342342 var data map [string ]any
343343 require .NoError (t , json .Unmarshal (ev .Data , & data ))
@@ -360,7 +360,7 @@ func TestBindingAndTimeline(t *testing.T) {
360360 },
361361 },
362362 })
363- ev := ec .waitFor (t , "layout_shift " , 2 * time .Second )
363+ ev := ec .waitFor (t , "page_layout_shift " , 2 * time .Second )
364364 assert .Equal (t , events .KindCDP , ev .Source .Kind )
365365 assert .Equal (t , "PerformanceTimeline.timelineEventAdded" , ev .Source .Event )
366366 var data map [string ]any
@@ -458,7 +458,7 @@ func TestPerTargetStateMachines(t *testing.T) {
458458 "id" : "f-a" , "url" : "https://a.example.com" , "loaderId" : "l-a" ,
459459 }},
460460 })
461- ec .waitFor (t , "navigation " , 2 * time .Second )
461+ ec .waitFor (t , "page_navigation " , 2 * time .Second )
462462
463463 srv .sendToMonitor (t , map [string ]any {
464464 "method" : "Network.requestWillBeSent" , "sessionId" : "sess-a" ,
@@ -520,7 +520,7 @@ func TestPerTargetStateMachines(t *testing.T) {
520520 "id" : "f-c" , "url" : "https://c.example.com" , "loaderId" : "l-c" ,
521521 }},
522522 })
523- ec .waitFor (t , "navigation " , 2 * time .Second )
523+ ec .waitFor (t , "page_navigation " , 2 * time .Second )
524524
525525 // Start a request, then finish it (arms the 500 ms network_idle timer).
526526 srv .sendToMonitor (t , map [string ]any {
0 commit comments