Closed Bug 957163 Opened 12 years ago Closed 12 years ago

Improve waiting in the keyboard app object logic

Categories

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

Other
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zcampbell, Assigned: zcampbell)

References

Details

Attachments

(2 files)

Is a bit flaky on device, looks like the keyboard is responding very slowly.
Attached file github pr
This failure exposed some issues in our Keyboard app object. This PR addresses: - More comments explaining things - wait_for_displayed instead of condition which gives better exception messages - Explicit waits after changing layouts - Slight simplification of change layout logic - Explicit wait after tapping space/upper case - Bug wlach found where key after space would not work
Attachment #8356733 - Flags: review?(florin.strugariu)
Attachment #8356733 - Flags: review?(dave.hunt)
Attachment #8356733 - Flags: review?(bob.silverberg)
Summary: Investigate test_everythingme_search intermittent failure → Improve waiting in the keyboard app object logic
also I did test this on v1.3 :)
Hmm, the test in bug 917404 is still hanging for me with this change. Before it would hang after the space was entered. Now nothing is being entered. I'll attach the test here as well, there's some eidetickerisms in there, but it should be easy enough to just remove that stuff.
Attachment #8356733 - Flags: review?(florin.strugariu)
Attachment #8356733 - Flags: review?(dave.hunt)
Attachment #8356733 - Flags: review?(bob.silverberg)
William, don't worry about this; my patch is not complete as it's failing in Travis. I'll switch it back to the old logic but with new waits where I know we need it.
(In reply to William Lachance (:wlach) from comment #3) > Hmm, the test in bug 917404 is still hanging for me with this change. I think Will means bug 946298
This seems to resolve the intermittent failure in test_everythingme_search_accented. I ran the test with this fix 21 times and got no failures: https://pastebin.mozilla.org/3966606
Comment on attachment 8356733 [details] [review] github pr I put this back to the old change_layout if logic which we know works. It's a bit clunky but neatening it was beginning to look very time consuming and risky to the various suites that use gaiatest. At least now it has solid waits and extra comments to explain the workflows.
Attachment #8356733 - Flags: review?(viorela.ioia)
Attachment #8356733 - Flags: review?(florin.strugariu)
Attachment #8356733 - Flags: review?(dave.hunt)
Attachment #8356733 - Flags: review?(bob.silverberg)
Comment on attachment 8356733 [details] [review] github pr Looks like good strengthening of the keyboard object. I've not run any tests, but the patch looks good to me.
Attachment #8356733 - Flags: review?(dave.hunt) → review+
It also fixes the intermittent failure in test_everythingme_launch_app: https://pastebin.mozilla.org/3966748
Attachment #8356733 - Flags: review?(viorela.ioia) → review+
Comment on attachment 8356733 [details] [review] github pr r+
Attachment #8356733 - Flags: review+
Attachment #8356733 - Flags: review?(florin.strugariu) → review+
merging in
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attachment #8356733 - Flags: review?(bob.silverberg)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: