Closed Bug 1221630 Opened 9 years ago Closed 9 years ago

test_settings_airplane_mode.py : TimeoutException: TimeoutException: Timed out after 10.0 seconds

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MaxIvanov, Assigned: martijn.martijn)

References

Details

Attachments

(1 file)

Description: Test case fails with "TimeoutException".

Steps:
1. Update a flame device to 20151104030037
2. Run this test case http://lxr.mozilla.org/gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_airplane_mode.py

Actual result:
"TimeoutException"

Expected result:
Test completes successfully.

Repro Rate: Reproduced via Jenkins adhoc (0/5 passing)
http://jenkins1.qa.scl3.mozilla.com/job/flame-kk.ui.adhoc.bitbar/326/HTML_Report/

Traceback (most recent call last):
File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_client-1.0.0-py2.7.egg/marionette/marionette_test.py", line 296, in run
testMethod()
File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_airplane_mode.py", line 24, in test_toggle_airplane_mode
settings.enable_airplane_mode()
File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/apps/settings/app.py", line 97, in enable_airplane_mode
self._airplane_checkbox.enable()
File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/form_controls/binarycontrol.py", line 24, in enable
self._toggle_and_verify_state(final_state=True)
File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/form_controls/binarycontrol.py", line 37, in _toggle_and_verify_state
Wait(self.marionette).until(lambda m: self.is_checked is final_state)
File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-1.0.0-py2.7.egg/marionette_driver/wait.py", line 143, in until
cause=last_exc)
TimeoutException: TimeoutException: Timed out after 10.1 seconds
I just enabled this test in bug 1131070, it was passing for me locally, but I'll take a look at it.
Assignee: nobody → martijn.martijn
Blocks: 1131070
I heard on irc this was a real bug, bug 1220046. There is a patch for that bug, so I'll keep this test enabled for now in the expectation the blocking bug is fixed soon.
Depends on: 1220046
Blocks: 1223955
What also happens is that the .is_enabled returns true even when the switch is greyed out.  this is causing the above timeout failure, since it tapped the switch when it was inactive.
Looks that we first should check that the switch is enabled (not disabled) before we check if it it's enabled (checked). But this should have been fixed with the fix for bug 1220046, is that not the case?
On the build from Nov 10th, (in master) this was still happening. it doesn't wait until the airplane switch becomes active.  checking for .enabled() isn't working it seems.
Attachment #8688553 - Flags: review?(npark)
Attachment #8688553 - Flags: review?(jlorenzo)
Comment on attachment 8688553 [details] [review]
[gaia] mwargers:1221630 > mozilla-b2g:master

consistently passing for me.  looks good.
Attachment #8688553 - Flags: review?(npark) → review+
Comment on attachment 8688553 [details] [review]
[gaia] mwargers:1221630 > mozilla-b2g:master

r+ modulo this nit[1], which makes the HtmlBinaryControl not working anymore.

[1] https://github.com/mozilla-b2g/gaia/pull/33239/files#r45176346
Attachment #8688553 - Flags: review?(jlorenzo) → review+
Updated and merged: https://github.com/mozilla-b2g/gaia/commit/7e5cd70ff3a8ae8ee29b5426d00e8f8e6c5bbef6
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1226636
Depends on: 1226647
Depends on: 1226643
Depends on: 1226658
No longer depends on: 1226647
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: