Closed Bug 2014665 Opened 1 month ago Closed 23 days ago

[wdspec] Add wheel scroll tests for WebDriver classic and BiDi which utilize high deltaX and deltaY values

Categories

(Remote Protocol :: Agent, task, P2)

task
Points:
2

Tracking

(firefox149 fixed)

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m19], [wptsync upstream])

Attachments

(2 files, 1 obsolete file)

On bug 1962355 we fixed the problem with high deltaX and deltaY values for mouse wheel actions. Now we need a test for both WebDriver classic and WebDriver BiDi. For reproduction I created the following test for classic:

def test_scroll_more_than_a_page(session, test_actions_scroll_page, wheel_chain):
    frame = session.find.css("#iframe", all=False)
    session.switch_frame(frame)

    target = session.find.css("div", all=False)
    wheel_chain.scroll(0, 0, 5, 3000, origin=target).perform()

    session.switch_frame(None)

    def wait_for_events(_):
        return len(get_events(session)) > 0

    Poll(session, timeout=0.5, interval=0.01,
         message='No wheel events found').until(wait_for_events)

    events = get_events(session)
    assert len(events) == 1
    assert events[0]["type"] == "wheel"
    assert events[0]["deltaX"] == 5
    assert events[0]["deltaY"] == 3000
    assert events[0]["deltaZ"] == 0
    assert events[0]["target"] == "iframeContent"

    # Allow some time for scrollTop to be updated
    import time
    time.sleep(1)

    session.switch_frame(frame)
    root = session.find.css(":root", all=False)
    assert root.property('scrollTop') == 3000

Lets get both tests added.

Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m19]
Assignee: nobody → hskupin
Status: NEW → ASSIGNED

Replace text-based event reporter with structured table showing wheel event
details (coordinates, button state, deltas, modifiers). Align test sections
horizontally using flexbox for better use of space on smaller windows.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Attachment #9542700 - Attachment is obsolete: true
Blocks: 1852529
Attachment #9543612 - Attachment description: Bug 2014665 - [wdspec] Refactor wheel scroll tests for WebDriver classic and BiDi and add tests with high deltaX and deltaY values. → Bug 2014665 - [wdspec] Add wheel scroll tests for WebDriver classic and BiDi which utilize high deltaX and deltaY values.
Attachment #9543612 - Attachment description: Bug 2014665 - [wdspec] Add wheel scroll tests for WebDriver classic and BiDi which utilize high deltaX and deltaY values. → Bug 2014665 - [wdspec] Refactor wheel scroll tests for WebDriver classic and BiDi and add tests with high deltaX and deltaY values.
Pushed by hskupin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/46c7f2c2c936 https://hg.mozilla.org/integration/autoland/rev/d1d68132c3bb [wdspec] Modernize test_actions_scroll.html with table-based event display and horizontal layout. r=jdescottes https://github.com/mozilla-firefox/firefox/commit/ccb314e2b26d https://hg.mozilla.org/integration/autoland/rev/48c06a2f3bf1 [wdspec] Refactor wheel scroll tests for WebDriver classic and BiDi and add tests with high deltaX and deltaY values. r=jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/57707 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m19] → [webdriver:m19], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Upstream PR was closed without merging
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: