Skip to content

Commit

Permalink
webdriver: add strictFileInteractability capability tests
Browse files Browse the repository at this point in the history
The new strictFileInteractabilityTests capability takes a boolean and
can unconditionally be set to both true and false.  It is permitted
to be undefined.

Depends on D10270

Depends on D10270

Differential Revision: https://phabricator.services.mozilla.com/D10271

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1502864
gecko-commit: dc69c736701f2b7b405e50ed92e3384e44e233c7
gecko-integration-branch: central
gecko-reviewers: jgraham
  • Loading branch information
andreastt authored and moz-wptsync-bot committed Nov 4, 2018
1 parent d6cfde5 commit 9608021
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webdriver/tests/new_session/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def test_sessionid(new_session, add_browser_capabilities):
("proxy", dict),
("setWindowRect", bool),
("timeouts", dict),
("strictFileInteractability", bool),
("unhandledPromptBehavior", basestring),
])
def test_capability_type(session, capability, type):
Expand All @@ -35,6 +36,7 @@ def test_capability_type(session, capability, type):
("proxy", {}),
("setWindowRect", True),
("timeouts", {"implicit": 0, "pageLoad": 300000, "script": 30000}),
("strictFileInteractability", False),
("unhandledPromptBehavior", "dismiss and notify"),
])
def test_capability_default_value(session, capability, default_value):
Expand Down
6 changes: 6 additions & 0 deletions webdriver/tests/new_session/support/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
{"script": 50, "pageLoad": 25},
{"script": 500},
]),
("strictFileInteractability", [
True, False, None,
]),
("unhandledPromptBehavior", [
"dismiss",
"accept",
Expand Down Expand Up @@ -95,6 +98,9 @@
{"pageLoad": {"value": 10}},
{"pageLoad": 10, "invalid": 10},
]),
("strictFileInteractability", [
1, [], {}, "false",
]),
("unhandledPromptBehavior", [
1, [], {}, False,
"DISMISS",
Expand Down

0 comments on commit 9608021

Please sign in to comment.