Bug 1473681 [wpt PR 11809] - Correcting expected exception type for WebDriver delete session test, a=testonly

Automatic update from web-platform-testswebdriver: correct expected exception type for delete session test (#11809)

The SessionNotCreatedException should be thrown if an attempt to create a
session fails. If a user tries to access a session that existed, but has
already been deleted, the correct exception is InvalidSessionIdException.
--

wpt-commits: dfe2b1ce939ce7b80a64d079655cfa14451e9960
wpt-pr: 11809
This commit is contained in:
jimevans 2018-07-07 08:09:50 +00:00 коммит произвёл James Graham
Родитель 110450dee9
Коммит 763e01e9e6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -626061,7 +626061,7 @@
"support"
],
"webdriver/tests/delete_session/delete.py": [
"1df6e1bfba0577a591bda8e0e27b96a1abcea1fb",
"7a0daf0ff25eec988dc0a5260a36cb60c8e13703",
"wdspec"
],
"webdriver/tests/dismiss_alert/__init__.py": [

Просмотреть файл

@ -31,5 +31,5 @@ def test_dismissed_beforeunload_prompt(session):
assert_success(response)
# A beforeunload prompt has to be automatically dismissed, and the session deleted
with pytest.raises(error.SessionNotCreatedException):
with pytest.raises(error.InvalidSessionIdException):
session.alert.text