Closed Bug 1975140 Opened 9 months ago Closed 9 months ago

Reset scroll position before each test in test_click_scrolling.py

Categories

(Testing :: Marionette Client and Harness, enhancement, P2)

enhancement
Points:
1

Tracking

(firefox141 fixed, firefox142 fixed)

RESOLVED FIXED
142 Branch
Tracking Status
firefox141 --- fixed
firefox142 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [webdriver:m17])

Attachments

(2 files)

Right now we are not resetting the scroll position of the current tab under test in-between the individual sub tests in test_click_scrolling.py. This can lead to unexpected failures in following tests as seen on bug 1867054.

As I checked with the following try build calling window.scroll(0, 0) during setUp will fix it.
https://treeherder.mozilla.org/jobs?repo=try&revision=97697c1b0dbd65b2e321a1ed730d12ccfa07993e

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Points: --- → 1
Priority: -- → P2
Whiteboard: [webdriver:m17]
Pushed by hskupin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6fab02b28adb https://hg.mozilla.org/integration/autoland/rev/16276caadadd [marionette] Reset scroll position before each test in test_click_scrolling.py. r=webdriver-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Attachment #9499131 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined: None, only affects unit tests for Marionette
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: None
  • Risk associated with taking this patch: Very low
  • Explanation of risk level: Only resets the window scroll position before each scroll test to ensure proper scrolling by using the initial 0,0 position
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9499131 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: