Closed Bug 1180170 Opened 9 years ago Closed 9 years ago

Failure in test_cost_control_ftu.py, locators need to be updated

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: martijn.martijn)

References

Details

Attachments

(1 file)

See: http://jenkins1.qa.scl3.mozilla.com/view/Bitbar/job/flame-kk-319.mozilla-central.tinderbox.ui.functional.non-smoke.1.bitbar/235/testReport/%28root%29/test_cost_control_ftu_py%20TestCostControlFTU_test_cost_control_ftu/test_cost_control_ftu_py_TestCostControlFTU_test_cost_control_ftu/

Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/.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.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/tests/python/gaia-ui-tests/gaiatest/tests/functional/cost_control/test_cost_control_ftu.py", line 26, in test_cost_control_ftu
    ftu_step3.enable_data_alert_toggle()
  File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/tests/python/gaia-ui-tests/gaiatest/apps/cost_control/regions/ftu_step3.py", line 32, in enable_data_alert_toggle
    switch = self.marionette.find_element(*self._data_alert_switch_locator)
  File "/var/lib/jenkins/jobs/flame-kk-319.mozilla-central.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/.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.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/.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.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/.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.tinderbox.ui.functional.non-smoke.1.bitbar/workspace@3/.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: #non-vivo-step-2 label.end input

I can reproduce it locally too. The locators need to be adjusted.

This probably started happening with the fix for bug 1177800.
Attachment #8629327 - Flags: review?(npark)
Attachment #8629327 - Flags: review?(jlorenzo)
Comment on attachment 8629327 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/30818

Looks great! Just one nit to change.
Attachment #8629327 - Flags: review?(jlorenzo) → review+
Merged: https://github.com/mozilla-b2g/gaia/commit/99b1adc278b9eca33d9b18b0bda4119578f92270
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.

Attachment

General

Created:
Updated:
Size: