Closed Bug 1676904 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 26510 - WebDriver Bidi tests with new Py3 WebSockets dependencies

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26510 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26510
Details from upstream follow.

b'Shengfa Lin <shengfa@google.com>' wrote:

WebDriver Bidi tests with new Py3 WebSockets dependencies

Created a prototype involving WebDriver Bidi client according to [1].

The actual dependencies for the WebSockets lib[2] and pytest-asyncio[3] are not included in this PR. They are installed locally using pip install.

However, later versions of pytest[4] and pluggy[5] are needed for pytest-asyncio and they are included here.

The change includes:

  1. A simple WebDriver Bidi capabilities test to demonstrate enabling WebSockets according to the protocol.
  2. Upgraded pytest and pluggy third party dependencies(with a work around for an version error in pytest).
  3. Added an async style test that enables WebSocket by directly specifying the corresponding capability.
  4. Add BidiSession class in WebDriver client for use in fixture to conveniently create a Bidi Session and tests to demonstrate behavior between tests.

[1] https://github.com/web-platform-tests/wpt/issues/26015#issuecomment-707677821
[2] https://github.com/aaugustin/websockets
[3] https://github.com/pytest-dev/pytest-asyncio
[4] https://github.com/pytest-dev/pytest
[5] https://github.com/pytest-dev/pluggy

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.