зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1746595 - [wdspec] Add wdspec tests for unknown command error r=webdriver-reviewers,whimboo
Depends on D134247 Differential Revision: https://phabricator.services.mozilla.com/D134248
This commit is contained in:
Родитель
73f68d16db
Коммит
0cdd559627
|
@ -0,0 +1,3 @@
|
|||
[errors.py]
|
||||
disabled:
|
||||
if release_or_beta: https://bugzilla.mozilla.org/show_bug.cgi?id=1712902
|
|
@ -0,0 +1,16 @@
|
|||
import pytest
|
||||
|
||||
from webdriver.bidi.error import UnknownCommandException
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize("module_name, command_name", [
|
||||
("invalidmodule", "somecommand"),
|
||||
("session", "wrongcommand"),
|
||||
], ids=[
|
||||
'invalid module',
|
||||
'invalid command name',
|
||||
])
|
||||
async def test_unknown_command(bidi_session, send_blocking_command, module_name, command_name):
|
||||
with pytest.raises(UnknownCommandException):
|
||||
await send_blocking_command(f"{module_name}.{command_name}", {})
|
Загрузка…
Ссылка в новой задаче