Closed Bug 974048 Opened 10 years ago Closed 10 years ago

Improve waiting for wifi in wifi connection tests

Categories

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

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zcampbell, Assigned: zcampbell)

Details

Attachments

(2 files)

46 bytes, text/x-github-pull-request
askeing
: review+
AndreiH
: review+
Details | Review
46 bytes, text/x-github-pull-request
Bebe
: review+
zcampbell
: review+
Details | Review
Instead of waiting for some wifi networks listed, let's wait for the actual one we want to be there.
Attached file github pr
Andrei this change might help stability on v1.3
Attachment #8377775 - Flags: review?(fyen)
Attachment #8377775 - Flags: review?(andrei.hutusoru)
Comment on attachment 8377775 [details] [review]
github pr

r+
Attachment #8377775 - Flags: review?(fyen) → review+
Comment on attachment 8377775 [details] [review]
github pr

On master, this works fine.
I will tests this on v1.3 also.
Attachment #8377775 - Flags: review?(andrei.hutusoru) → review+
Zac I got some intermittents here [1] when waiting for _password_input_locator
[1] https://github.com/zacc/gaia/blob/bug_974048/tests/python/gaia-ui-tests/gaiatest/apps/settings/regions/wifi.py#L40

I think that we will have a stronger wait if we change it to something like
self.wait_for_condition(lambda m: (ok.location['x'] + ok.size['width']) == screen_width)

the locator being the ok button:
https://github.com/zacc/gaia/blob/bug_974048/tests/python/gaia-ui-tests/gaiatest/apps/settings/regions/wifi.py#L43
ok thanks AndreiH! Actually I only checked this on open wifi  :/ so thanks.

Fortunately this is not blocking so I'll try to get to this later today or tomorrow.
Ok Zac, thanks!

I will make the changes for v1.3 and I will start and adhoc job to see the results
Attachment #8378217 - Flags: review?(zcampbell)
Attachment #8378217 - Flags: review?(florin.strugariu)
Attachment #8378217 - Flags: review?(florin.strugariu) → review+
Comment on attachment 8378217 [details] [review]
PR on v1.3 https://github.com/mozilla-b2g/gaia/pull/16447

r+
Attachment #8378217 - Flags: review?(zcampbell) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: