Closed Bug 1784532 Opened 2 years ago Closed 2 years ago

Remove current_session usage from log.entryAdded tests

Categories

(Testing :: geckodriver, task, P1)

Default
task
Points:
2

Tracking

(firefox105 fixed)

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

()

Details

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

Attachments

(1 file)

Now that we have support for script.evaluate and script.callFunction the fallback to WebDriver classic's execute_script is no longer necessary. As such the following listed items can be removed:

https://searchfox.org/mozilla-central/search?q=execute_script&path=testing%2Fweb-platform%2Ftests%2Fwebdriver%2Ftests%2Fbidi%2Flog%2F&case=false&regexp=false

To help the Chrome team in getting these tests to run as well I'm going to fix that as a Friday evening patch.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED

I would propose to add this bug to the script evaluate feature of M4 with probably 2 points.

Blocks: 1770417
Points: --- → 2
Priority: -- → P1
Whiteboard: [webdriver:m4]

My changes also include the removal of current_session.new_window(), so expanding the scope to all the usages of current_session for log.entryAdded tests.

Summary: Remove current_session.execute_script() calls from log.entryAdded tests → Remove current_session usage from log.entryAdded tests
Attachment #9289859 - Attachment description: Bug 1784532 - [wdspec] Remove current_session.execute_script() calls from log.entryAdded tests. → Bug 1784532 - [wdspec] Remove usage of current_session from log.entryAdded tests.
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5accd30736c0
[wdspec] Remove usage of current_session from log.entryAdded tests. r=webdriver-reviewers,Sasha,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35513 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m4] → [webdriver:m4], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Upstream PR merged by moz-wptsync-bot

FWIW: current_time uses WebDriver Classic current_session.execute_script("return Date.now();")

Interesting. It's indirectly using current_session and as such didn't fully match this bug's scope.

@sadym, would you mind creating an upstream pull request to get this usage removed?

FYI Maxim is taking care of it over on https://github.com/web-platform-tests/wpt/pull/35577.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: