Skip to content

test: fix get_element_tag_name test to expect lowercase tagname#60167

Open
juliandescottes wants to merge 1 commit into
web-platform-tests:masterfrom
juliandescottes:fix1956-tagname-lowercase-wpt
Open

test: fix get_element_tag_name test to expect lowercase tagname#60167
juliandescottes wants to merge 1 commit into
web-platform-tests:masterfrom
juliandescottes:fix1956-tagname-lowercase-wpt

test: fix get_element_tag_name test to expect lowercase tagname

8a109cf
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-results succeeded May 26, 2026 in 3m 29s

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: 2026-05-26T08:57:22.839Z
Resolved: 2026-05-26T09:00:50.733Z
Task Execution Time: 3 minutes, 27 seconds, 894 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: IF6tunx6Sie6abJrQrdXBw
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 --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome


[taskcluster 2026-05-26 08:57:22.928Z] Task ID: IF6tunx6Sie6abJrQrdXBw
[taskcluster 2026-05-26 08:57:22.928Z] Worker ID: 8824201103701237414
[taskcluster 2026-05-26 08:57:22.928Z] Worker Group: us-central1-a
[taskcluster 2026-05-26 08:57:22.928Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2026-05-26 08:57:22.928Z] Worker Pool: proj-wpt/ci
[taskcluster 2026-05-26 08:57:22.928Z] Worker Version: 46.1.0
[taskcluster 2026-05-26 08:57:22.928Z] Public IP: 34.58.158.54
[taskcluster 2026-05-26 08:57:22.928Z] Hostname: proj-wpt-ci-xxsz1x8gt36gfoo2-xnuig

b1e71f63927a - Started downloading
b1e71f63927a - Downloaded in 0.032 seconds
5b82b858ea7e - Started downloading
66587c81b81a - Started downloading
08c7e224535e - Started downloading
08c7e224535e - Downloaded in 0.044 seconds
66587c81b81a - Downloaded in 0.2 seconds
4f4fb700ef54 - Started downloading
4f4fb700ef54 - Downloaded in 0 seconds
32bbaaf98e4c - Started downloading
dd5257950bd4 - Started downloading

...(673 lines hidden)...

 1:08.65 INFO STDOUT: webdriver/tests/support/classic/asserts.py
 1:08.65 INFO STDOUT: :48: AssertionError
 1:08.65 INFO STDOUT: =========================== short test summary info ============================
 1:08.65 INFO STDOUT: FAILED webdriver/tests/classic/get_element_tag_name/get.py::test_no_browsing_context - AssertionError
 1:08.65 INFO STDOUT: FAILED webdriver/tests/classic/get_element_tag_name/get.py::test_no_such_element_with_shadow_root - AssertionError
 1:08.65 INFO STDOUT: ========================= 2 failed, 9 passed in 3.84s ==========================
 1:08.66 TEST_END: Test OK. Subtests passed 9/11. Unexpected 2
FAIL test_no_browsing_context - AssertionError
session = <Session 8255d0ad30edb2aedd2606673974419b>, closed_frame = None

    def test_no_browsing_context(session, closed_frame):
        response = get_element_tag_name(session, "foo")
>       assert_error(response, "no such window")

closed_frame = None
response   = <Response status=404 error=<NoSuchElementException http_status=404>>
session    = <Session 8255d0ad30edb2aedd2606673974419b>

webdriver/tests/classic/get_element_tag_name/get.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=404 error=<NoSuchElementException http_status=404>>
error_code = 'no such window', data = None

    def assert_error(response, error_code, data=None):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        :param data: Optional dictionary containing additional information about the error.
        """
        assert response.status == errors[error_code]
    
        assert "value" in response.body
>       assert response.body["value"]["error"] == error_code
E       AssertionError

data       = None
error_code = 'no such window'
response   = <Response status=404 error=<NoSuchElementException http_status=404>>

webdriver/tests/support/classic/asserts.py:51: AssertionError
FAIL test_no_such_element_with_shadow_root - AssertionError
session = <Session 8255d0ad30edb2aedd2606673974419b>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7fdfe2f33760>

    def test_no_such_element_with_shadow_root(session, get_test_page):
        session.url = get_test_page()
    
        element = session.find.css("custom-element", all=False)
    
        result = get_element_tag_name(session, element.shadow_root.id)
>       assert_error(result, "no such element")

element    = <WebElement f.C4AF6A9A8DB5CCF72DE2C27FF3757E78.d.AE9B94DBBB207ADCF9D329E5EDEAC609.e.5>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7fdfe2f33760>
result     = <Response status=500 error=<JavascriptErrorException http_status=500>>
session    = <Session 8255d0ad30edb2aedd2606673974419b>

webdriver/tests/classic/get_element_tag_name/get.py:45: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=500 error=<JavascriptErrorException http_status=500>>
error_code = 'no such element', data = None

    def assert_error(response, error_code, data=None):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        :param data: Optional dictionary containing additional information about the error.
        """
>       assert response.status == errors[error_code]
E       AssertionError

data       = None
error_code = 'no such element'
response   = <Response status=500 error=<JavascriptErrorException http_status=500>>

webdriver/tests/support/classic/asserts.py:48: AssertionError

 1:08.66 INFO No more tests
 1:08.66 INFO Closing logging queue
 1:08.66 INFO queue closed
 1:08.74 SUITE_END

web-platform-test
~~~~~~~~~~~~~~~~~
Ran 12 checks (11 subtests, 1 tests)
Expected results: 10
Unexpected results: 2
  subtest: 2 (2 fail)

Error Summary
-------------
/webdriver/tests/classic/get_element_tag_name/get.py
  FAIL test_no_browsing_context - AssertionError
session = <Session 8255d0ad30edb2aedd2606673974419b>, closed_frame = None

    def test_no_browsing_context(session, closed_frame):
        response = get_element_tag_name(session, "foo")
>       assert_error(response, "no such window")

closed_frame = None
response   = <Response status=404 error=<NoSuchElementException http_status=404>>
session    = <Session 8255d0ad30edb2aedd2606673974419b>

webdriver/tests/classic/get_element_tag_name/get.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=404 error=<NoSuchElementException http_status=404>>
error_code = 'no such window', data = None

    def assert_error(response, error_code, data=None):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        :param data: Optional dictionary containing additional information about the error.
        """
        assert response.status == errors[error_code]
    
        assert "value" in response.body
>       assert response.body["value"]["error"] == error_code
E       AssertionError

data       = None
error_code = 'no such window'
response   = <Response status=404 error=<NoSuchElementException http_status=404>>

webdriver/tests/support/classic/asserts.py:51: AssertionError
  FAIL test_no_such_element_with_shadow_root - AssertionError
session = <Session 8255d0ad30edb2aedd2606673974419b>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7fdfe2f33760>

    def test_no_such_element_with_shadow_root(session, get_test_page):
        session.url = get_test_page()
    
        element = session.find.css("custom-element", all=False)
    
        result = get_element_tag_name(session, element.shadow_root.id)
>       assert_error(result, "no such element")

element    = <WebElement f.C4AF6A9A8DB5CCF72DE2C27FF3757E78.d.AE9B94DBBB207ADCF9D329E5EDEAC609.e.5>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7fdfe2f33760>
result     = <Response status=500 error=<JavascriptErrorException http_status=500>>
session    = <Session 8255d0ad30edb2aedd2606673974419b>

webdriver/tests/classic/get_element_tag_name/get.py:45: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=500 error=<JavascriptErrorException http_status=500>>
error_code = 'no such element', data = None

    def assert_error(response, error_code, data=None):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        :param data: Optional dictionary containing additional information about the error.
        """
>       assert response.status == errors[error_code]
E       AssertionError

data       = None
error_code = 'no such element'
response   = <Response status=500 error=<JavascriptErrorException http_status=500>>

webdriver/tests/support/classic/asserts.py:48: AssertionError
 1:08.74 INFO Got 1 unexpected results, with 0 unexpected passes
 1:08.74 wptserve INFO Stopped http server on 127.0.0.1:8000
 1:08.74 wptserve INFO Stopped http server on 127.0.0.1:8001
 1:08.74 wptserve INFO Stopped http server on 127.0.0.1:8002
 1:08.75 wptserve INFO Stopped http server on 127.0.0.1:8444
 1:08.75 wptserve INFO Stopped http server on 127.0.0.1:8443
 1:08.75 wptserve INFO Stopped http server on 127.0.0.1:8003
 1:08.76 wptserve INFO Stopped http server on 127.0.0.1:8445
 1:08.77 wptserve INFO Stopped http server on 127.0.0.1:8446
 1:08.77 wptserve INFO Stopped http server on 127.0.0.1:9000
 1:08.78 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 1:08.78 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 1:08.78 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 1:09.00 INFO Removed font: Ahem.ttf
 1:09.03 INFO Closing logging queue
 1:09.03 INFO queue closed
 1:09.03 INFO Tolerating 1 unexpected results
[taskcluster 2026-05-26 09:00:49.022Z] === Task Finished ===
[taskcluster 2026-05-26 09:00:50.006Z] Successful task run with exit code: 0 completed in 207.08 seconds