Closed
Bug 1468185
Opened 7 years ago
Closed 7 years ago
Add support for allowed unhandledPromptBehavior options
Categories
(Testing :: geckodriver, enhancement, P1)
Testing
geckodriver
Tracking
(firefox62 fixed)
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
To get bug 1264259 implemented geckodriver needs to support all the allowed values for unhandledPromptBehavior:
https://w3c.github.io/webdriver/#dfn-known-prompt-handling-approaches-table
I want to get this out with the 0.21.0 release to unblock myself from working on bug 1264259.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
What I find strange is that the wdspec test `test_handle_prompt_dismiss_and_notify` is passing now, even with the appropriate end-point in Marionette not being handled. It means that the test is actually wrong, and doesn't check that an error is returned. I will have to update the patch.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0773ae1691c8514291b589b348a5b27a8b1b9870&filter-resultStatus=success&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=running&filter-resultStatus=pending&filter-resultStatus=runnable
Assignee | ||
Comment 3•7 years ago
|
||
Ok, so the before-mentioned wdspec tests were inappropriately marked as expected fail. The underlying problem here was that the various other options as added by this bug throw an `InvalidArgumentException` during session start:
> [task 2018-06-11T19:13:36.415Z] 19:13:36 INFO - STDOUT: E InvalidArgumentException: invalid argument (400): Invalid unhandledPromptBehavior value: dismiss and notify
So allowing the validation of geckodriver to pass, we now correctly forward the values to Marionette, which for now simply ignores them.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
Also with the additional test executed now, the default timeout is not enough and needs to be extended to long.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Priority: -- → P1
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8984845 [details]
Bug 1468185 - [geckodriver] Add support for all unhandledPromptBehavior options.
https://reviewboard.mozilla.org/r/250646/#review256950
Code analysis found 1 defect in this patch:
- 1 defect found by mozlint
You can run this analysis locally with:
- `./mach lint path/to/file` (JS/Python)
If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx
::: testing/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:1
(Diff revision 3)
> + # META: timeout=long
Error: Metadata comments should start the line [wpt: INDENTED-METADATA]
Comment hidden (mozreview-request) |
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8984845 [details]
Bug 1468185 - [geckodriver] Add support for all unhandledPromptBehavior options.
https://reviewboard.mozilla.org/r/250646/#review256992
Attachment #8984845 -
Flags: review?(ato) → review+
Comment 10•7 years ago
|
||
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cdcd92a013f
[geckodriver] Add support for all unhandledPromptBehavior options. r=ato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/11481 for changes under testing/web-platform/tests
Can't merge web-platform-tests PR due to failing upstream checks:
Github PR https://github.com/web-platform-tests/wpt/pull/11481
* continuous-integration/travis-ci/pr (https://travis-ci.org/web-platform-tests/wpt/builds/391457038?utm_source=github_status&utm_medium=notification)
Comment 13•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•