[wdspec] add user context subscription tests #50434
Community-TC (pull_request)
Collect results for all tests affected by a pull request in chrome.
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2025-02-03T12:51:51.476Z
Resolved: 2025-02-03T13:18:03.170Z
Task Execution Time: 26 minutes, 11 seconds, 694 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
- public/results/wpt_report.json.gz
- public/results/wpt_screenshot.txt.gz
WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --no-headless --verify-log-full --enable-swiftshader --install-browser --install-webdriver chrome
[taskcluster 2025-02-03 12:51:51.549Z] Task ID: HAVtYfpBSOaPYQ5Dcrif0Q
[taskcluster 2025-02-03 12:51:51.549Z] Worker ID: 3816644685499009114
[taskcluster 2025-02-03 12:51:51.549Z] Worker Group: us-east1-b
[taskcluster 2025-02-03 12:51:51.549Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2025-02-03 12:51:51.549Z] Worker Pool: proj-wpt/ci
[taskcluster 2025-02-03 12:51:51.549Z] Worker Version: 46.1.0
[taskcluster 2025-02-03 12:51:51.549Z] Public IP: 34.148.74.133
[taskcluster 2025-02-03 12:51:51.549Z] Hostname: proj-wpt-ci-zsssodkoqt2wlvq6plldaq
[taskcluster 2025-02-03 12:51:52.079Z] === Task Starting ===
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/01-locale-fix.sh ']'
+ . /etc/profile.d/01-locale-fix.sh
+++ /usr/bin/locale-check C.UTF-8
++ eval
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/libvirt-uri.sh ']'
+ . /etc/profile.d/libvirt-uri.sh
...(131447 lines hidden)...
webdriver/tests/interop/beforeunload_prompt.py:63: in check_beforeunload_not_implicitly_accepted
await bidi_session.browsing_context.handle_user_prompt(
accept = False
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f9a67268760>
current_session = <Session 85d46abba6022817b5d59ca162d2c171>
execute_as_async = <function execute_as_async.<locals>.execute_as_async at 0x7f9a6727be50>
new_tab = {'context': '09D7FBADADC828D33100356577FCC36D'}
on_prompt_closed = <Future finished result={'accepted': False, 'context': '09D7FBADADC8...0356577FCC36D', 'type': 'beforeunload'}>
on_prompt_opened = <Future finished result={'context': '09D7FBADADC8...0356577FCC36D', 'handler': 'dismiss', 'message': '', 'type': 'beforeunload'}>
opened_event = {'context': '09D7FBADADC828D33100356577FCC36D',
'handler': 'dismiss',
'message': '',
'type': 'beforeunload'}
page_beforeunload = 'https://web-platform.test:8443/webdriver/tests/support/html/beforeunload.html'
page_target = 'https://web-platform.test:8443/webdriver/tests/support/html/default.html'
setup_beforeunload_page = <function setup_beforeunload_page.<locals>.setup_beforeunload_page at 0x7f9a6727b5e0>
subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f9a6727b310>
sync_navigate = <function check_beforeunload_not_implicitly_accepted.<locals>.check_beforeunload_not_implicitly_accepted.<locals>.sync_navigate at 0x7f9a6722d1f0>
task_navigate = <Task finished name='Task-83258' coro=<execute_as_async.<locals>.execute_as_async() done, defined at /home/test/web-platform-tests/webdriver/tests/support/fixtures_bidi.py:56> result=None>
url = <function url.<locals>.url at 0x7f9a67278820>
wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f9a6727b550>
wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f9a6727b9d0>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f9a67268340>
kwargs = {'accept': False, 'context': '09D7FBADADC828D33100356577FCC36D'}
raw_result = False
params = {'accept': False, 'context': '09D7FBADADC828D33100356577FCC36D'}
mod_name = 'browsingContext', cmd_name = 'browsingContext.handleUserPrompt'
future = <Future finished exception=NoSuchAlertException(no such alert, No dialog is showing, None)>
@functools.wraps(params_fn)
async def inner(self: Any, **kwargs: Any) -> Any:
raw_result = kwargs.pop("raw_result", False)
params = remove_undefined(params_fn(self, **kwargs))
# Convert the classname and the method name to a bidi command name
mod_name = owner.__name__[0].lower() + owner.__name__[1:]
if hasattr(owner, "prefix"):
mod_name = f"{owner.prefix}:{mod_name}"
cmd_name = f"{mod_name}.{to_camelcase(name)}"
future = await self.session.send_command(cmd_name, params)
> result = await future
E webdriver.bidi.error.NoSuchAlertException: no such alert (No dialog is showing)
cmd_name = 'browsingContext.handleUserPrompt'
future = <Future finished exception=NoSuchAlertException(no such alert, No dialog is showing, None)>
kwargs = {'accept': False, 'context': '09D7FBADADC828D33100356577FCC36D'}
mod_name = 'browsingContext'
name = 'handle_user_prompt'
owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
params = {'accept': False, 'context': '09D7FBADADC828D33100356577FCC36D'}
params_fn = <function BrowsingContext.handle_user_prompt at 0x7f9a8578c280>
raw_result = False
result_fn = None
self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f9a67268340>
tools/webdriver/webdriver/bidi/modules/_module.py:76: NoSuchAlertException
FAIL test_dismiss_and_notify[capabilities0-True] - webdriver.bidi.error.NoSuchAlertException: no such alert (No dialog is showing)
check_beforeunload_not_implicitly_accepted = <function check_beforeunload_not_implicitly_accepted.<locals>.check_beforeunload_not_implicitly_accepted at 0x7f9a6727b3a0>
accept = True
@pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss and notify"})
@pytest.mark.parametrize("accept", [False, True])
async def test_dismiss_and_notify(check_beforeunload_not_implicitly_accepted, accept):
> await check_beforeunload_not_implicitly_accepted(accept)
accept = True
check_beforeunload_not_implicitly_accepted = <function check_beforeunload_not_implicitly_accepted.<locals>.check_beforeunload_not_implicitly_accepted at 0x7f9a6727b3a0>
webdriver/tests/interop/beforeunload_prompt.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
webdriver/tests/interop/beforeunload_prompt.py:63: in check_beforeunload_not_implicitly_accepted
await bidi_session.browsing_context.handle_user_prompt(
accept = True
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f9a67268760>
current_session = <Session 85d46abba6022817b5d59ca162d2c171>
execute_as_async = <function execute_as_async.<locals>.execute_as_async at 0x7f9a6727b040>
new_tab = {'context': 'F4C278DD0483FB68028DEECF49FB67AC'}
on_prompt_closed = <Future finished result={'accepted': False, 'context': 'F4C278DD0483...DEECF49FB67AC', 'type': 'beforeunload'}>
on_prompt_opened = <Future finished result={'context': 'F4C278DD0483...DEECF49FB67AC', 'handler': 'dismiss', 'message': '', 'type': 'beforeunload'}>
opened_event = {'context': 'F4C278DD0483FB68028DEECF49FB67AC',
'handler': 'dismiss',
'message': '',
'type': 'beforeunload'}
page_beforeunload = 'https://web-platform.test:8443/webdriver/tests/support/html/beforeunload.html'
page_target = 'https://web-platform.test:8443/webdriver/tests/support/html/default.html'
setup_beforeunload_page = <function setup_beforeunload_page.<locals>.setup_beforeunload_page at 0x7f9a6727bb80>
subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f9a6727b670>
sync_navigate = <function check_beforeunload_not_implicitly_accepted.<locals>.check_beforeunload_not_implicitly_accepted.<locals>.sync_navigate at 0x7f9a672781f0>
task_navigate = <Task finished name='Task-83275' coro=<execute_as_async.<locals>.execute_as_async() done, defined at /home/test/web-platform-tests/webdriver/tests/support/fixtures_bidi.py:56> result=None>
url = <function url.<locals>.url at 0x7f9a67250b80>
wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f9a6727b4c0>
wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f9a6727bd30>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f9a67268340>
kwargs = {'accept': True, 'context': 'F4C278DD0483FB68028DEECF49FB67AC'}
raw_result = False
params = {'accept': True, 'context': 'F4C278DD0483FB68028DEECF49FB67AC'}
mod_name = 'browsingContext', cmd_name = 'browsingContext.handleUserPrompt'
future = <Future finished exception=NoSuchAlertException(no such alert, No dialog is showing, None)>
@functools.wraps(params_fn)
async def inner(self: Any, **kwargs: Any) -> Any:
raw_result = kwargs.pop("raw_result", False)
params = remove_undefined(params_fn(self, **kwargs))
# Convert the classname and the method name to a bidi command name
mod_name = owner.__name__[0].lower() + owner.__name__[1:]
if hasattr(owner, "prefix"):
mod_name = f"{owner.prefix}:{mod_name}"
cmd_name = f"{mod_name}.{to_camelcase(name)}"
future = await self.session.send_command(cmd_name, params)
> result = await future
E webdriver.bidi.error.NoSuchAlertException: no such alert (No dialog is showing)
cmd_name = 'browsingContext.handleUserPrompt'
future = <Future finished exception=NoSuchAlertException(no such alert, No dialog is showing, None)>
kwargs = {'accept': True, 'context': 'F4C278DD0483FB68028DEECF49FB67AC'}
mod_name = 'browsingContext'
name = 'handle_user_prompt'
owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
params = {'accept': True, 'context': 'F4C278DD0483FB68028DEECF49FB67AC'}
params_fn = <function BrowsingContext.handle_user_prompt at 0x7f9a8578c280>
raw_result = False
result_fn = None
self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f9a67268340>
tools/webdriver/webdriver/bidi/modules/_module.py:76: NoSuchAlertException
/webdriver/tests/interop/frames.py
FAIL test_classic_switch_to_parent_no_browsing_context - Failed: DID NOT RAISE <class 'webdriver.error.NoSuchWindowException'>
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f9a6720c8e0>
current_session = <Session 95f53fbf7b1264dc11f489c67f9e275e>
url = <function url.<locals>.url at 0x7f9a6722d820>
async def test_classic_switch_to_parent_no_browsing_context(bidi_session, current_session, url):
# With WebDriver classic it cannot be checked if the parent frame is already
# gone before switching to it. To prevent race conditions such a check needs
# to be done via WebDriver BiDi.
current_session.url = url("/webdriver/tests/support/html/frames.html")
subframe = current_session.find.css("#sub-frame", all=False)
current_session.switch_frame(subframe)
deleteframe = current_session.find.css("#delete-frame", all=False)
current_session.switch_frame(deleteframe)
button = current_session.find.css("#remove-top", all=False)
button.click()
async def is_frame_removed(_):
contexts = await bidi_session.browsing_context.get_tree(root=current_session.window_handle)
return not contexts[0]["children"]
# Wait until IFrame is gone.
wait = AsyncPoll(
current_session,
timeout=5,
message="IFrame that should be closed is still open",
)
await wait.until(is_frame_removed)
with pytest.raises(NoSuchWindowException):
> current_session.switch_frame("parent")
E Failed: DID NOT RAISE <class 'webdriver.error.NoSuchWindowException'>
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f9a6720c8e0>
button = <WebElement f.3DF50EDC5A706D8B4AA177C9BCC442DA.d.5EF877DA94ED5C5CDDCFE8EAB5400EA4.e.8>
current_session = <Session 95f53fbf7b1264dc11f489c67f9e275e>
deleteframe = <WebElement f.57DCFD05D88E0386A495BFAFF6727E96.d.51DBED3FD29DC71451CD68EB77CE1487.e.7>
is_frame_removed = <function test_classic_switch_to_parent_no_browsing_context.<locals>.is_frame_removed at 0x7f9a67278550>
subframe = <WebElement f.6A780625687794CCE0C53F6D7E455FCB.d.DE036A39BDF8D7885FF2D1DC232F694A.e.6>
url = <function url.<locals>.url at 0x7f9a6722d820>
wait = <tests.support.sync.AsyncPoll object at 0x7f9a6724c9a0>
webdriver/tests/interop/frames.py:37: Failed
22:37.97 INFO Got 90 unexpected results, with 0 unexpected passes
22:37.97 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
22:38.17 wptserve INFO Stopped http server on 127.0.0.1:8444
22:38.20 wptserve INFO Stopped http server on 127.0.0.1:8003
22:38.20 wptserve INFO Stopped http server on 127.0.0.1:8446
22:38.20 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
22:38.20 wptserve INFO Stopped http server on 127.0.0.1:9000
22:38.20 wptserve INFO Stopped http server on 127.0.0.1:8002
22:38.21 wptserve INFO Stopped http server on 127.0.0.1:8445
22:38.22 wptserve INFO Stopped http server on 127.0.0.1:8001
22:38.22 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
22:38.30 wptserve INFO Stopped http server on 127.0.0.1:8443
22:38.44 wptserve INFO Stopped http server on 127.0.0.1:8000
22:38.48 INFO Removed font: Ahem.ttf
22:38.50 INFO Closing logging queue
22:38.50 INFO queue closed
22:38.50 INFO Tolerating 90 unexpected results
X connection to :99.0 broken (explicit kill or server shutdown).
[taskcluster 2025-02-03 13:18:01.592Z] === Task Finished ===
[taskcluster 2025-02-03 13:18:02.544Z] Successful task run with exit code: 0 completed in 1570.997 seconds