New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix queryAppState protocol #3977
Fix queryAppState protocol #3977
Conversation
c5b8885
to
2ab74a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #3977 +/- ##
=======================================
Coverage 98.59% 98.59%
=======================================
Files 155 155
Lines 3496 3496
Branches 767 767
=======================================
Hits 3447 3447
Misses 44 44
Partials 5 5 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it seems this in not correct according to the Appium docs: http://appium.io/docs/en/commands/device/app/app-state/
2ab74a8
to
c8b961c
Compare
@christian-bromann Just noticed but it may be out of date. https://github.com/appium/appium-base-driver/blob/master/lib/protocol/routes.js#L472 . Could you try to reproduce #3976 ? |
81baa25
to
2f2545b
Compare
According to https://github.com/appium/appium-base-driver/blob/master/lib/protocol/routes.js#L472 both GET and POST methods should be supported. Most likely one of them is outdated and exists for compatibility. However according to http://appium.io/docs/en/commands/device/app/app-state/ it should be GET, which is not necessarily correct because queryAppState request has payload. I don't mind changing it from GET to POST if POST works with latest Appium version, which seems to be true. |
2f2545b
to
745586f
Compare
It seems to be true for me and just to reinforce: this isn't a nitpicking thing like "we should use POST cause I feel like it". By using GET, the |
Fix queryAppState protocol (#3977)
Proposed changes
Fixes #3976
Types of changes
Checklist
Further comments
Reviewers: @webdriverio/technical-committee