Closed Bug 1184511 Opened 9 years ago Closed 9 years ago

[Aries] test_settings_device_info fails because only 1 IMEI is displayed

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master affected)

RESOLVED FIXED
Tracking Status
b2g-master --- affected

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

Details

Attachments

(1 file)

> TEST-UNEXPECTED-ERROR | test_settings_device_info.py TestSettingsDeviceInfo.test_that_device_info_is_populated | IndexError: list index out of range
> 
> Traceback (most recent call last):
>   File "/home/jlorenzo/git/gaia/tests/python/gaia-ui-tests/.env/lib/python2.7/site-packages/marionette_client-0.16-py2.7.egg/marionette/marionette_test.py", line 296, in run
>     testMethod()
>   File "/home/jlorenzo/git/gaia/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_device_info.py", line 32, in test_that_device_info_is_populated
>     self.assertTrue(len(getattr(more_info, item)) > 0)
>   File "/home/jlorenzo/git/gaia/tests/python/gaia-ui-tests/gaiatest/apps/settings/regions/device_info.py", line 72, in imei1
>     return self.marionette.find_element(*self._imei1_locator).text.split()[2]
> TEST-INFO took 37959ms
Blocks: 1181535
Comment on attachment 8656529 [details] [review]
[gaia] JohanLorenzo:bug-1184511 > mozilla-b2g:master

I tested this patch against Flame and Aries. You'll need to make sure the imei field is present in your testvars files.
Attachment #8656529 - Flags: review?(martijn.martijn)
Attachment #8656529 - Flags: review?(jdorlus)
Assignee: nobody → jlorenzo
Comment on attachment 8656529 [details] [review]
[gaia] JohanLorenzo:bug-1184511 > mozilla-b2g:master

Looks good, I repeated the test 10 times on the Flame. Currently, I don't have a SIM card on my Aries, so I haven't tested there.
Attachment #8656529 - Flags: review?(martijn.martijn) → review+
Comment on attachment 8656529 [details] [review]
[gaia] JohanLorenzo:bug-1184511 > mozilla-b2g:master

Nice. This worked for me. Sorry it took so long.
Attachment #8656529 - Flags: review?(jdorlus) → review+
Landed in master at: https://github.com/mozilla-b2g/gaia/commit/622e1795f1519c94ecb21db9ab83528d26e6e315
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: