Closed Bug 950570 Opened 6 years ago Closed 6 years ago

Fix test_settings_airplane_mode.py

Categories

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

All
Gonk (Firefox OS)
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: askeing, Assigned: askeing)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
Bebe
: review+
viorela
: review+
Details | Review
Buri pvt m-c build
Gaia      59b89715c92d0383fb3d09941db93af5dfd05bc8
Gecko     http://hg.mozilla.org/mozilla-central/rev/0fdbcbffc79e
BuildID   20131215040201
Version   29.0a1
ro.build.version.incremental=eng.archermind.20131114.105818
ro.build.date=Thu Nov 14 10:58:33 CST 2013


test_toggle_airplane_mode (test_settings_airplane_mode.TestAirplaneMode) ... FAIL

======================================================================
FAIL: None
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.7.1-py2.7.egg/marionette/marionette_test.py", line 143, in run
    testMethod()
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_airplane_mode.py", line 30, in test_toggle_airplane_mode
    self.assertFalse(self.data_layer.is_wifi_connected(self.testvars['wifi']), "WiFi was still connected after switching on Airplane mode")
TEST-UNEXPECTED-FAIL | test_settings_airplane_mode.py test_settings_airplane_mode.TestAirplaneMode.test_toggle_airplane_mode | AssertionError: WiFi was still connected after switching on Airplane mode
----------------------------------------------------------------------
Ran 1 test in 57.972s
It seems like wait for Cell Data to be disabled does not have enough time to enable airplain mode.
Change to wait for wifi to be disabled.
Attached file PR 14690
Attachment #8347911 - Flags: review?(florin.strugariu)
Assignee: nobody → fyen
Comment on attachment 8347911 [details] [review]
PR 14690

I watched the test while running and I noticed that after the airplane mode is enabled, Cell data gets disabled first, and Wifi later.
Attachment #8347911 - Flags: review+
Attachment #8347911 - Flags: review?(florin.strugariu) → review+
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.