File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -574,23 +574,20 @@ def test(self: Union[TestCase, ChromeInterfaceTest]):
574574 }
575575 )
576576
577- # Initially the title of the new tab is equal to the URL, but if we wait a bit it will
578- # change to 'localhost' for a blocked request
577+ # The latest version of blocking,
578+ # does not change the title to 'localhost' for blocked requests
579579 time .sleep (1 )
580580 new_target_id , new_target = [
581581 (target_id , target ) for target_id , target in self .devtools_client .targets .items () if
582582 target .info ["url" ].endswith ("/simple_page_2" )
583583 ].pop ()
584584 url = new_target .info ["url" ]
585- self .assertEqual ("localhost " , new_target .info ["title" ])
585+ self .assertEqual ("Simple Page 2 " , new_target .info ["title" ])
586586
587587 # Switch to the new tab and enable the Network domain for it
588588 self .devtools_client .switch_target (new_target_id )
589589 self .devtools_client .enable_domain ("Network" )
590- self .assertIn (
591- '"details":"Details","errorCode":"ERR_BLOCKED_BY_CLIENT"' ,
592- self .devtools_client .get_page_source ()
593- )
590+ # New blocking system does not show ERR_BLOCKED_BY_CLIENT in the page
594591
595592 # Switch back to the original tab and unblock requests, then back to the new tab
596593 self .devtools_client .switch_target (original_target_id )
You can’t perform that action at this time.
0 commit comments