Closed Bug 955984 Opened 11 years ago Closed 11 years ago

Fix test_ftu_skip_tour.py

Categories

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

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: askeing, Assigned: askeing)

Details

Attachments

(2 files)

The test test_ftu_skip_tour.py will fail when Wifi has the password. 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/ftu/test_ftu_skip_tour.py", line 157, in test_ftu_skip_tour self._select("Asia") File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/tests/functional/ftu/test_ftu_skip_tour.py", line 239, in _select li = self.wait_for_element_present(*_list_item_locator) File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 999, in wait_for_element_present 'Element %s not present before timeout' % locator) TEST-UNEXPECTED-FAIL | test_ftu_skip_tour.py test_ftu_skip_tour.TestFtu.test_ftu_skip_tour | TimeoutException: Element id('value-selector-container')/descendant::li[descendant::span[.='Asia']] not present before timeout
Assignee: nobody → fyen
Attached image 2014-01-02-16-02-39.png
I found the gaiatest will send password and tap Join button before Keyboad app be displayed. It seems like we have to wait for Keyboard app be displayed.
Attached file PR 14985
Wait for Keyboard app init and be displayed, then tap Join button to join wifi.
Attachment #8355142 - Flags: review?(zcampbell)
Attachment #8355142 - Flags: review?(florin.strugariu)
(In reply to Askeing Yen[:askeing] from comment #1) > Created attachment 8355140 [details] > 2014-01-02-16-02-39.png > > I found the gaiatest will send password and tap Join button before Keyboad > app be displayed. > It seems like we have to wait for Keyboard app be displayed. PS: It only can be replicated by gaia-ui-test, can not replicate it manually.
Comment on attachment 8355142 [details] [review] PR 14985 r+
Attachment #8355142 - Flags: review?(zcampbell)
Attachment #8355142 - Flags: review?(florin.strugariu)
Attachment #8355142 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: