Closed Bug 1864744 Opened 2 years ago Closed 1 year ago

Intermittent [tier 2] webdriver/tests/bidi/browsing_context/activate/activate.py | test_keeps_focused_area - AssertionError: assert 'hidden' == 'visible'

Categories

(Remote Protocol :: WebDriver BiDi, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: imoraru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=436240490&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Mt0oZZYiQrS0X60oHSKSZw/runs/0/artifacts/public/logs/live_backing.log


[task 2023-11-14T19:20:50.427Z] 19:20:50     INFO - PID 1642 | 1699989650426	geckodriver::browser	DEBUG	Browser process stopped: exit status: 0
[task 2023-11-14T19:20:50.429Z] 19:20:50     INFO - PID 1642 | 1699989650426	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-11-14T19:20:50.430Z] 19:20:50     INFO - STDOUT: =================================== FAILURES ===================================
[task 2023-11-14T19:20:50.431Z] 19:20:50     INFO - STDOUT: ___________________________ test_keeps_focused_area ____________________________
[task 2023-11-14T19:20:50.437Z] 19:20:50     INFO - STDOUT: bidi_session = <webdriver.bidi.client.BidiSession object at 0x7fb00a519390>
[task 2023-11-14T19:20:50.437Z] 19:20:50     INFO - STDOUT: inline = <function inline.<locals>.inline at 0x7fb009a8bd40>
[task 2023-11-14T19:20:50.437Z] 19:20:50     INFO - STDOUT: new_tab = {'context': '0de1dd74-afbe-4b63-be66-9fc72b6f76fb'}
[task 2023-11-14T19:20:50.437Z] 19:20:50     INFO - STDOUT: top_context = {'children': [], 'context': '6746e4d9-1dc5-4ae6-ab7d-bde121cdff62', 'parent': None, 'url': 'about:blank'}
[task 2023-11-14T19:20:50.438Z] 19:20:50     INFO - STDOUT:     async def test_keeps_focused_area(bidi_session, inline, new_tab, top_context):
[task 2023-11-14T19:20:50.438Z] 19:20:50     INFO - STDOUT:         await bidi_session.browsing_context.activate(context=new_tab["context"])
[task 2023-11-14T19:20:50.439Z] 19:20:50     INFO - STDOUT:         assert await get_visibility_state(bidi_session, new_tab) == 'visible'
[task 2023-11-14T19:20:50.439Z] 19:20:50     INFO - STDOUT:         assert await get_document_focus(bidi_session, new_tab) is True
[task 2023-11-14T19:20:50.439Z] 19:20:50     INFO - STDOUT:     
[task 2023-11-14T19:20:50.439Z] 19:20:50     INFO - STDOUT:         await bidi_session.browsing_context.navigate(context=new_tab["context"],
[task 2023-11-14T19:20:50.439Z] 19:20:50     INFO - STDOUT:                                                      url=inline("<textarea autofocus></textarea><input>"),
[task 2023-11-14T19:20:50.440Z] 19:20:50     INFO - STDOUT:                                                      wait="complete")
[task 2023-11-14T19:20:50.440Z] 19:20:50     INFO - STDOUT:     
[task 2023-11-14T19:20:50.440Z] 19:20:50     INFO - STDOUT:         await bidi_session.script.evaluate(
[task 2023-11-14T19:20:50.440Z] 19:20:50     INFO - STDOUT:             expression="""document.querySelector("input").focus()""",
[task 2023-11-14T19:20:50.441Z] 19:20:50     INFO - STDOUT:             target=ContextTarget(new_tab["context"]),
[task 2023-11-14T19:20:50.441Z] 19:20:50     INFO - STDOUT:             await_promise=False)
[task 2023-11-14T19:20:50.442Z] 19:20:50     INFO - STDOUT:     
[task 2023-11-14T19:20:50.443Z] 19:20:50     INFO - STDOUT:         assert await is_selector_focused(bidi_session, new_tab, "input")
[task 2023-11-14T19:20:50.443Z] 19:20:50     INFO - STDOUT:     
[task 2023-11-14T19:20:50.444Z] 19:20:50     INFO - STDOUT:         await bidi_session.browsing_context.activate(context=top_context["context"])
[task 2023-11-14T19:20:50.445Z] 19:20:50     INFO - STDOUT:         assert await get_document_focus(bidi_session, new_tab) is False
[task 2023-11-14T19:20:50.446Z] 19:20:50     INFO - STDOUT:         assert await is_selector_focused(bidi_session, new_tab, "input")
[task 2023-11-14T19:20:50.446Z] 19:20:50     INFO - STDOUT:     
[task 2023-11-14T19:20:50.447Z] 19:20:50     INFO - STDOUT:         await bidi_session.browsing_context.activate(context=new_tab["context"])
[task 2023-11-14T19:20:50.448Z] 19:20:50     INFO - STDOUT: >       assert await get_visibility_state(bidi_session, new_tab) == 'visible'
[task 2023-11-14T19:20:50.449Z] 19:20:50     INFO - STDOUT: E       AssertionError: assert 'hidden' == 'visible'
[task 2023-11-14T19:20:50.449Z] 19:20:50     INFO - STDOUT: E         - visible
[task 2023-11-14T19:20:50.450Z] 19:20:50     INFO - STDOUT: E         + hidden
[task 2023-11-14T19:20:50.451Z] 19:20:50     INFO - STDOUT: bidi_session = <webdriver.bidi.client.BidiSession object at 0x7fb00a519390>
[task 2023-11-14T19:20:50.452Z] 19:20:50     INFO - STDOUT: inline     = <function inline.<locals>.inline at 0x7fb009a8bd40>
[task 2023-11-14T19:20:50.453Z] 19:20:50     INFO - STDOUT: new_tab    = {'context': '0de1dd74-afbe-4b63-be66-9fc72b6f76fb'}
[task 2023-11-14T19:20:50.453Z] 19:20:50     INFO - STDOUT: top_context = {'children': [],
[task 2023-11-14T19:20:50.453Z] 19:20:50     INFO -  'context': '6746e4d9-1dc5-4ae6-ab7d-bde121cdff62',
[task 2023-11-14T19:20:50.454Z] 19:20:50     INFO -  'parent': None,
[task 2023-11-14T19:20:50.454Z] 19:20:50     INFO -  'url': 'about:blank'}
[task 2023-11-14T19:20:50.454Z] 19:20:50     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/bidi/browsing_context/activate/activate.py
[task 2023-11-14T19:20:50.455Z] 19:20:50     INFO - STDOUT: :56: AssertionError
[task 2023-11-14T19:20:50.456Z] 19:20:50     INFO - STDOUT: =========================== short test summary info ============================
[task 2023-11-14T19:20:50.457Z] 19:20:50     INFO - STDOUT: FAILED tests/web-platform/tests/webdriver/tests/bidi/browsing_context/activate/activate.py::test_keeps_focused_area
[task 2023-11-14T19:20:50.458Z] 19:20:50     INFO - STDOUT: ========================= 1 failed, 4 passed in 18.23s =========================
[task 2023-11-14T19:20:50.461Z] 19:20:50     INFO - 
[task 2023-11-14T19:20:50.461Z] 19:20:50     INFO - TEST-PASS | /webdriver/tests/bidi/browsing_context/activate/activate.py | test_activate 
[task 2023-11-14T19:20:50.461Z] 19:20:50     INFO - TEST-PASS | /webdriver/tests/bidi/browsing_context/activate/activate.py | test_deactivates_other_contexts 
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/browsing_context/activate/activate.py | test_keeps_focused_area - AssertionError: assert 'hidden' == 'visible'
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7fb00a519390>
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO - inline = <function inline.<locals>.inline at 0x7fb009a8bd40>
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO - new_tab = {'context': '0de1dd74-afbe-4b63-be66-9fc72b6f76fb'}
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO - top_context = {'children': [], 'context': '6746e4d9-1dc5-4ae6-ab7d-bde121cdff62', 'parent': None, 'url': 'about:blank'}
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO - 
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -     async def test_keeps_focused_area(bidi_session, inline, new_tab, top_context):
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -         await bidi_session.browsing_context.activate(context=new_tab["context"])
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -         assert await get_visibility_state(bidi_session, new_tab) == 'visible'
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -         assert await get_document_focus(bidi_session, new_tab) is True
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -     
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -         await bidi_session.browsing_context.navigate(context=new_tab["context"],
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -                                                      url=inline("<textarea autofocus></textarea><input>"),
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -                                                      wait="complete")
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -     
[task 2023-11-14T19:20:50.462Z] 19:20:50     INFO -         await bidi_session.script.evaluate(
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -             expression="""document.querySelector("input").focus()""",
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -             target=ContextTarget(new_tab["context"]),
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -             await_promise=False)
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -     
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -         assert await is_selector_focused(bidi_session, new_tab, "input")
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -     
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -         await bidi_session.browsing_context.activate(context=top_context["context"])
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -         assert await get_document_focus(bidi_session, new_tab) is False
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -         assert await is_selector_focused(bidi_session, new_tab, "input")
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -     
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -         await bidi_session.browsing_context.activate(context=new_tab["context"])
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - >       assert await get_visibility_state(bidi_session, new_tab) == 'visible'
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - E       AssertionError: assert 'hidden' == 'visible'
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - E         - visible
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - E         + hidden
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - 
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7fb00a519390>
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - inline     = <function inline.<locals>.inline at 0x7fb009a8bd40>
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - new_tab    = {'context': '0de1dd74-afbe-4b63-be66-9fc72b6f76fb'}
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - top_context = {'children': [],
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -  'context': '6746e4d9-1dc5-4ae6-ab7d-bde121cdff62',
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -  'parent': None,
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO -  'url': 'about:blank'}
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - 
[task 2023-11-14T19:20:50.463Z] 19:20:50     INFO - tests/web-platform/tests/webdriver/tests/bidi/browsing_context/activate/activate.py:56: AssertionError
[task 2023-11-14T19:20:50.465Z] 19:20:50     INFO - ..
[task 2023-11-14T19:20:50.465Z] 19:20:50     INFO - TEST-OK | /webdriver/tests/bidi/browsing_context/activate/activate.py | took 18720ms
[task 2023-11-14T19:20:50.468Z] 19:20:50     INFO - PID 1642 | 1699989650438	webdriver::server	DEBUG	-> GET /status
[task 2023-11-14T19:20:50.468Z] 19:20:50     INFO - PID 1642 | 1699989650439	webdriver::server	DEBUG	<- 200 OK {"value":{"message":"","ready":true}}
[task 2023-11-14T19:20:50.531Z] 19:20:50     INFO - Closing logging queue
[task 2023-11-14T19:20:50.532Z] 19:20:50     INFO - queue closed
[task 2023-11-14T19:20:50.640Z] 19:20:50     INFO - PID 2132 | 1699989650538	geckodriver	INFO	Listening on 127.0.0.1:34477
[task 2023-11-14T19:20:50.641Z] 19:20:50     INFO - Starting runner
[task 2023-11-14T19:20:50.901Z] 19:20:50     INFO - TEST-START | /webdriver/tests/bidi/browsing_context/activate/invalid.py
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.