Fix intermittent failure in test_settings_wifi.py, improve wait before typing the password

RESOLVED FIXED

Status

Firefox OS
Gaia::UI Tests
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: viorela, Assigned: viorela)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
Test test_settings_wifi.py has failed in latest mozilla-central build: http://jenkins1.qa.scl3.mozilla.com/job/flame-kk-319.mozilla-central.ui.functional.smoke/262/HTML_Report/
I've been able to reproduce the failure locally, by running the automated test several times; It is failing intermittently, repro rate: 1/5.
The reason of the the password is sent too quicly, before the password input field is completely displayed. 
Waiting for that field to be visible/enabled looks like a good fix for this issue.

Traceback (most recent call last):
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette_test.py", line 268, in run
testMethod()
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_wifi.py", line 24, in test_connect_to_wifi_via_settings_app
wifi_settings.connect_to_network(self.testvars['wifi'])
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/tests/python/gaia-ui-tests/gaiatest/apps/settings/regions/wifi.py", line 44, in connect_to_network
password_input.send_keys(password)
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 113, in send_keys
return self.marionette._send_message('sendKeysToElement', 'ok', id=self.id, value=typing)
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/decorators.py", line 36, in _
return func(*args, **kwargs)
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 634, in _send_message
self._handle_error(response)
File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 679, in _handle_error
raise errors.ElementNotVisibleException(message=message, status=status, stacktrace=stacktrace)
ElementNotVisibleException: ElementNotVisibleException: Element is not visible

Device firmware (base) 	L1TC10011880
Device firmware (date) 	15 Jan 2015 01:30:42
Device firmware (incremental) 	eng.cltbld.20150115.043033
Device firmware (release) 	4.4.2
Device identifier 	flame
Gaia date 	14 Jan 2015 08:21:14
Gaia revision 	bcc76f93f565
Gecko build 	20150115010229
Gecko revision 	c1f6345f2803
Gecko version 	38.0a1
(Assignee)

Updated

3 years ago
Assignee: nobody → viorela.ioia
(Assignee)

Updated

3 years ago
QA Whiteboard: [fxosqa-auto-s8]
(Assignee)

Comment 1

3 years ago
Created attachment 8549644 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/27420
Attachment #8549644 - Flags: review?(jlorenzo)
Attachment #8549644 - Flags: review?(florin.strugariu)
Attachment #8549644 - Flags: review?(florin.strugariu) → review-
(Assignee)

Comment 2

3 years ago
Comment on attachment 8549644 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/27420

updated
Attachment #8549644 - Flags: review- → review?(florin.strugariu)
Attachment #8549644 - Flags: review?(jlorenzo)
Attachment #8549644 - Flags: review?(florin.strugariu)
Attachment #8549644 - Flags: review+
https://github.com/mozilla-b2g/gaia/commit/c96ac230ce1a38bd31b144eb7d721bab317fafdf
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Blocks: 1167518
You need to log in before you can comment on or make changes to this bug.