[wpt-sync] Sync PR 26510 - WebDriver Bidi tests with new Py3 WebSockets dependencies
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(Not tracked)
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:
- A simple WebDriver Bidi capabilities test to demonstrate enabling WebSockets according to the protocol.
- Upgraded pytest and pluggy third party dependencies(with a work around for an version error in pytest).
- Added an async style test that enables WebSocket by directly specifying the corresponding capability.
- 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
| Assignee | ||
Updated•5 years ago
|
Description
•