Skip to content

Commit 082431e

Browse files
committed
[RD-51657] Fix test for new multi window support blocking mechanism
1 parent 238b63c commit 082431e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/e2etests/chrome/test_interface.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)