Closed
Bug 1329683
Opened 8 years ago
Closed 8 years ago
Test additions for test_navigation.py on bug 1328676 breaks tests for Fennec
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox52 fixed, firefox53 fixed)
RESOLVED
FIXED
mozilla53
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Keywords: regression)
Attachments
(1 file)
Earlier today I noticed that we have again a bump in failing tests for Fennec on autoland (Chunk 4) since a couple of days ago.
https://treeherder.mozilla.org/logviewer.html#?job_id=67247736&repo=autoland&lineNumber=1921
Checking for changes of this file I noticed that with bug 1328676 a new test got added which should not run if Marionette doesn't handle the instance, and also not on Fennec:
https://hg.mozilla.org/mozilla-central/rev/8c25f4454f5b#l2.12
With the new decorator as added in bug 1326047 this can easily be done.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8825082 -
Flags: review?(mjzffr)
Attachment #8825082 -
Flags: review?(ato)
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8825082 [details]
Bug 1329683 - Run test_focus_after_navigation only if Marionette manages the instance.
https://reviewboard.mozilla.org/r/103322/#review103942
::: testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py:187
(Diff revision 1)
> + @run_if_manage_instance("Only runnable if Marionette manages the instance")
> + @skip_if_mobile("Bug 1322993 - Missing temporary folder")
> def test_focus_after_navigation(self):
> self.marionette.quit()
> self.marionette.start_session()
>
> self.marionette.navigate(inline("<input autofocus>"))
> active_el = self.marionette.execute_script("return document.activeElement")
> focus_el = self.marionette.find_element(By.CSS_SELECTOR, ":focus")
> self.assertEqual(active_el, focus_el)
Why is this test limited to instances of Firefox tat is managed by the harness?
I get why it’s ignored on mobile (because it uses tabbrowser and XUL functionality that isn’t available on Fennec).
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8825082 [details]
Bug 1329683 - Run test_focus_after_navigation only if Marionette manages the instance.
https://reviewboard.mozilla.org/r/103322/#review103944
Attachment #8825082 -
Flags: review?(ato) → review-
Comment 4•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8825082 [details]
Bug 1329683 - Run test_focus_after_navigation only if Marionette manages the instance.
https://reviewboard.mozilla.org/r/103322/#review103942
> Why is this test limited to instances of Firefox tat is managed by the harness?
>
> I get why it’s ignored on mobile (because it uses tabbrowser and XUL functionality that isn’t available on Fennec).
`self.marionette.quit()` requires an instance.
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8825082 [details]
Bug 1329683 - Run test_focus_after_navigation only if Marionette manages the instance.
https://reviewboard.mozilla.org/r/103322/#review103956
Attachment #8825082 -
Flags: review?(mjzffr) → review+
Assignee | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8825082 [details]
Bug 1329683 - Run test_focus_after_navigation only if Marionette manages the instance.
https://reviewboard.mozilla.org/r/103322/#review103942
> `self.marionette.quit()` requires an instance.
As Maja already said, if Marionette doesn't manage the instance it has no path to the binary, and as such cannot launch the application again. Same applies for forced restarts. An in_app restart would be possible but that's not available yet for mobile.
So for now it would really be the best to skip it for both conditions. Also with having bug 1322993 in mind.
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/27e89a88acff
Run test_focus_after_navigation only if Marionette manages the instance. r=maja_zf
Comment 8•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Assignee | ||
Comment 9•8 years ago
|
||
M4 chunk for Fennec look fine again. Please uplift this test-only patch to aurora.
Whiteboard: [checkin-needed-aurora]
Comment 10•8 years ago
|
||
bugherder uplift |
Whiteboard: [checkin-needed-aurora]
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•