Closed Bug 1016364 Opened 9 years ago Closed 9 years ago

[2.0] test_sms_to_dialer.TestDialerFromMessage is failing intermittently

Categories

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

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: AndreiH, Assigned: AndreiH)

Details

Attachments

(3 files)

Attached image download.png
This is something in that needs investigation in our automated tests.
I could reproduce this locally.
Being an intermittent failure brings me to believe this is not a real bug, but our tests need to be updated.

Traceback (most recent call last):
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/.env/local/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette_test.py", line 163, in run
    testMethod()
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/tests/python/gaia-ui-tests/gaiatest/tests/functional/messages/test_sms_to_dialer.py", line 34, in test_dialer_from_message
    keypad = message_thread.tap_call()
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/tests/python/gaia-ui-tests/gaiatest/apps/messages/regions/message_thread.py", line 43, in tap_call
    self.marionette.find_element(*self._call_button_locator).tap()
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/.env/local/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette.py", line 1204, in find_element
    response = self._send_message('findElement', 'value', **kwargs)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/.env/local/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/decorators.py", line 35, in _
    return func(*args, **kwargs)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/.env/local/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette.py", line 624, in _send_message
    self._handle_error(response)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui.non-smoketest/.env/local/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette.py", line 655, in _handle_error
    raise NoSuchElementException(message=message, status=status, stacktrace=stacktrace)
NoSuchElementException: NoSuchElementException: Unable to locate element: button[data-l10n-id="call"]
Assignee: nobody → andrei.hutusoru
Attached image 2014-05-27-17-43-20.png
I think the problem that we are encountering is that the tap is sometimes done on the system notification message instead of the header.
We need to wait for the notification to disappear and the continue.
Priority: -- → P1
Attachment #8429865 - Flags: review?(viorela.ioia)
Attachment #8429865 - Flags: review?(robert.chira)
Attachment #8429865 - Flags: review?(florin.strugariu)
Attachment #8429865 - Flags: review?(bob.silverberg)
Attachment #8429865 - Flags: review?(viorela.ioia) → review+
Attachment #8429865 - Flags: review?(zcampbell)
Comment on attachment 8429865 [details] [review]
PR https://github.com/mozilla-b2g/gaia/pull/19710

r+ from  me too
Attachment #8429865 - Flags: review?(zcampbell) → review+
Attachment #8429865 - Flags: review?(robert.chira) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.