[Aries] test_settings_device_info fails because only 1 IMEI is displayed

RESOLVED FIXED

Status

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

People

(Reporter: jlorenzo, Assigned: jlorenzo)

Tracking

unspecified
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

(b2g-master affected)

Details

Attachments

(1 attachment)

46 bytes, text/x-github-pull-request
Martijn Wargers (dead)
: review+
Silne30
: review+
Details | Review | Splinter Review
(Assignee)

Description

2 years ago
> 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
(Assignee)

Updated

2 years ago
Blocks: 1181535

Comment 1

2 years ago
Created attachment 8656529 [details] [review]
[gaia] JohanLorenzo:bug-1184511 > mozilla-b2g:master
(Assignee)

Comment 2

2 years ago
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)

Updated

2 years ago
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+
(Assignee)

Comment 5

2 years ago
Landed in master at: https://github.com/mozilla-b2g/gaia/commit/622e1795f1519c94ecb21db9ab83528d26e6e315
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.