Closed Bug 1184649 Opened 9 years ago Closed 9 years ago

test_add_to_new_contact_from_messages.py: "NoSuchElementException: Unable to locate element: email_0"

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: onelson, Assigned: martijn.martijn)

References

Details

Attachments

(1 file)

Description:
test_add_to_new_contact_from_messages is failing consistently again under a new traceback than bug 1183202. Test appears to be failing when attempting to access the email field when creating a new contact.
Appears UI may have changed to not have E-Mail field available initially and must be added to the contact (tap the line/'+' icon to add an email field), and the test tries to access the text field immediately instead and fails.

* http://jenkins1.qa.scl3.mozilla.com/view/UI/job/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/166/HTML_Report/
* http://jenkins1.qa.scl3.mozilla.com/view/UI/job/flame-kk.ui.adhoc.bitbar/138/HTML_Report/

Repro Steps:
1) Update a phone to 20150715160204
2) Open Messages
3) Receive an sms
4) Create new contact from sms-sender
5) Add additional contact field entries, including email

Actual:
Test breaks when attempting to access email field entry

Expected: 
Test enters email and continues to fill remaining fields

Traceback (most recent call last):
File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_client-0.16-py2.7.egg/marionette/marionette_test.py", line 296, in run
testMethod()
File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/tests/functional/messages/test_add_to_new_contact_from_messages.py", line 40, in test_sms_create_new_contact
new_contact.type_email(self.contact['email']['value'])
File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/contact_form.py", line 58, in type_email
element = self.marionette.find_element(*self._email_locator)
File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-0.9-py2.7.egg/marionette_driver/marionette.py", line 1589, in find_element
response = self._send_message('findElement', 'value', **kwargs)
File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-0.9-py2.7.egg/marionette_driver/decorators.py", line 36, in _
return func(*args, **kwargs)
File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-0.9-py2.7.egg/marionette_driver/marionette.py", line 715, in _send_message
    self._handle_error(response)
  File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.2.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-0.9-py2.7.egg/marionette_driver/marionette.py", line 751, in _handle_error
    raise errors.lookup(status)(message, stacktrace=stacktrace)
NoSuchElementException: NoSuchElementException: Unable to locate element: email_0


Environmental Variables:
Device firmware (base) 	L1TC100118D0
Device firmware (date) 	15 Jul 2015 23:22:42
Device firmware (incremental) 	eng.cltbld.20150715.192231
Device firmware (release) 	4.4.2
Device identifier 	flame
Device memory 	219772 kB
Device serial 	94f7ce17
Device uptime 	0 days 0 hours 2 minutes 7 seconds
Gaia date 	15 Jul 2015 12:13:34
Gaia revision 	b9968cdc4a1d
Gecko build 	20150715160204
Gecko revision 	49683d4e9ebd
Gecko version 	42.0a1

Reproducible manually: No

Repro frequency: 5/5
Assignee: nobody → martijn.martijn
Attachment #8635033 - Flags: review?(npark)
Attachment #8635033 - Flags: review?(jlorenzo)
Comment on attachment 8635033 [details] [review]
[gaia] mwargers:1184649 > mozilla-b2g:master

Agreed on No-Jun's proposal.
Attachment #8635033 - Flags: review?(jlorenzo)
Attachment #8635033 - Flags: review?(npark)
Attachment #8635033 - Flags: review?(npark)
Attachment #8635033 - Flags: review?(jlorenzo)
Comment on attachment 8635033 [details] [review]
[gaia] mwargers:1184649 > mozilla-b2g:master

good to see that header wait is working now too. looks good to me.
Attachment #8635033 - Flags: review?(npark) → review+
Comment on attachment 8635033 [details] [review]
[gaia] mwargers:1184649 > mozilla-b2g:master

Looks good to me!
Attachment #8635033 - Flags: review?(jlorenzo) → review+
Merged: https://github.com/mozilla-b2g/gaia/commit/0f4c808bee26fb68158e7039eb213b38e71b4997
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Hmm, it might be that this could be failing again, when bug 1191471. Not sure, though, because it's not clear to me what has been decided there.
Depends on: 1191471
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: