Closed Bug 1722090 Opened 3 years ago Closed 2 years ago

Move httpd.js and WebSocket specific tests that use RemoteAgent.listen() to Wdspec tests

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
2

Tracking

(firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [bidi-m3-mvp])

Attachments

(2 files)

Any test that is using RemoteAgent.listen() and also stops the Remote Agent from listening has to be moved to a Wdspec test. Once done we want to extend the lifetime of the Remote Agent to the full Firefox session (bug 1717899).

No longer blocks: 1717899
Whiteboard: [webdriver:triage]
Blocks: 1717899
Points: --- → 2
Whiteboard: [webdriver:triage] → [bidi-m1-mvp]
Whiteboard: [bidi-m1-mvp] → [bidi-m2-mvp]
Priority: P3 → --
Priority: -- → P3
Whiteboard: [bidi-m2-mvp]

Tests that we currently have in CDP related browser chrome tests are these:
https://searchfox.org/mozilla-central/search?q=RemoteAgent.listen%28

Some of these should already be covered by existing wdspec tests and the rest we should be able to move over here:
https://searchfox.org/mozilla-central/source/testing/web-platform/mozilla/tests/webdriver/bidi/websocket_upgrade.py

Note that tests which exercise calling RemoteAgent.listen on something else than localhost would be blocked on https://bugzilla.mozilla.org/show_bug.cgi?id=1754364

(In reply to Julian Descottes [:jdescottes] from comment #2)

Note that tests which exercise calling RemoteAgent.listen on something else than localhost would be blocked on https://bugzilla.mozilla.org/show_bug.cgi?id=1754364

As discussed on Elements, we will remove the ability to start the RemoteAgent on non-localhost in Bug 1759998, and at the same time, we will remove the related tests. All the remaining tests should then be moved to wdspec tests as suggested above.

See Also: → 1759998

This bug blocks bug 1717899 which is required to get WebDriver Bidi enabled on the release channels. As such bringing it into our milestone.

What needs to be done for this bug? Here an overview of the currently remaining tests that need to be moved or deleted:

remote/cdp/test/browser/component/browser_agent_webdriver_bidi.js

This module contains just a single test for the WebDriverBiDiActivePort file. This is already covered by wdspec tests and as such the file can be removed.

remote/cdp/test/browser/browser_httpd.js

There is only one test contained for the /json/version end-point. This test can remain as is and needs to be updated with bug 1717899.

remote/cdp/test/browser/component/browser_agent.js

debuggerAddress

Only checks for the debuggerAddress property on the RemoteAgent. This test can remain as is and needs to be updated with bug 1717899.

listening

Checks the listening property. This test can remain as is and needs to be updated with bug 1717899.

remoteListeningNotification

Checks for the remote-listening observer notification which the Remote Agent sends out when being enabled. This test can no longer be kept given that we cannot catch that notification when the Remote Agent is enabled in final-ui-startup. It can be removed as part of bug 1717899. A test needs to be written to verify that the cue (robot icon and striped location bar) has been set correctly (bug 1672366).

remoteDevToolsActivePortFile

Tests for the existence of the DevToolsActivePort file. I'll move this to a Mozilla wdspec test.

listenTakesString

Needs to be removed with bug with bug 1717899.

listenNonURL

Needs to be removed with bug with bug 1717899.

listenRestrictedToLoopbackDevice

Needs to be removed with bug with bug 1717899.

test_close

Needs to be removed with bug with bug 1717899.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Priority: P3 → P2
Whiteboard: [bidi-m3-mvp]
Attachment #9273125 - Attachment description: WIP: Bug 1722090 - [wdspec] Reorganize Chrome DevTools Protocol tests. → Bug 1722090 - [wdspec] Reorganize Chrome DevTools Protocol tests.
Attachment #9273126 - Attachment description: WIP: Bug 1722090 - [remote] Move useful browser chrome tests for Remote Agent to wdspec. → Bug 1722090 - [remote] Move useful browser chrome tests for Remote Agent to wdspec.
Depends on: 1765731
Blocks: 1765764
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dcb8036f32da
[wdspec] Reorganize Chrome DevTools Protocol tests. r=webdriver-reviewers,jdescottes
https://hg.mozilla.org/integration/autoland/rev/f57cc4eec01a
[remote] Move useful browser chrome tests for Remote Agent to wdspec. r=webdriver-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: