Skip to content

Commit 3f58966

Browse files
juliandescottesmoz-wptsync-bot
authored andcommitted
[wdspec] Fix wdspec tests for browsingContext.locateNodes
Differential Revision: https://phabricator.services.mozilla.com/D270838 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1941270 gecko-commit: 241e6e380ff835393ea0d4f15fbf8b4e450c04ab gecko-reviewers: Sasha
1 parent bd278f4 commit 3f58966

File tree

1 file changed

+2
-3
lines changed
  • webdriver/tests/bidi/browsing_context/locate_nodes

1 file changed

+2
-3
lines changed

webdriver/tests/bidi/browsing_context/locate_nodes/invalid.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def test_params_locator_context_value_invalid_type(bidi_session, inline,
9797
)
9898

9999

100-
@pytest.mark.parametrize("value", ["non_exiting_context"])
100+
@pytest.mark.parametrize("value", ["", "non_existing_context"])
101101
async def test_params_locator_context_value_invalid_context(bidi_session,
102102
inline, top_context, value):
103103
await navigate_to_page(bidi_session, inline, top_context)
@@ -114,8 +114,7 @@ async def test_params_locator_context_value_invalid_context(bidi_session,
114114
("css", "a*b"),
115115
("xpath", ""),
116116
("innerText", ""),
117-
("accessibility", {}),
118-
("context", {"context": ""})
117+
("accessibility", {})
119118
])
120119
async def test_params_locator_value_invalid_value(bidi_session, inline, top_context, type, value):
121120
await navigate_to_page(bidi_session, inline, top_context)

0 commit comments

Comments
 (0)