Closed Bug 920416 Opened 11 years ago Closed 11 years ago

Update code to use controller.select() in testPreferences/testPreferredLanguage.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P1)

defect

Tracking

(firefox24 fixed, firefox25 fixed, firefox26 fixed, firefox27 fixed, firefox-esr17 fixed, firefox-esr24 fixed)

RESOLVED FIXED
Tracking Status
firefox24 --- fixed
firefox25 --- fixed
firefox26 --- fixed
firefox27 --- fixed
firefox-esr17 --- fixed
firefox-esr24 --- fixed

People

(Reporter: andrei, Assigned: andrei)

References

Details

(Keywords: regression)

Attachments

(1 file)

We need to update the following code:

> // Select the language in the dropdown
> // Bug 852116
> // TODO: replace this code with controller.select() once 852116 lands
> aController.click(langDropDown);
> assert.waitFor(function () {
>     return langDropDown.getNode().open;
> }, "Language Drop Down has been opened");
> aController.click(filteredLanguageList.elements[randomPosition]);
> aController.click(langDropDown);

With:
> controller.select()

We get a failure in 1.5.23 right now:
http://mozmill-staging.blargon7.com/#/functional/report/837c1e0f361ac93453ee6972195e578b

Probably due to bug 912941 getting landed.
Lets get this fixed on all branches, so that we can upgrade to 1.5.23 on production later today.
Blocks: 852116
No longer depends on: 852116
Keywords: regression
Priority: -- → P1
Attached patch 1.patchSplinter Review
I've replaced the block of code with controller.select()

Appears to be working very nice:

1.5
===
OSX: http://mozmill-crowd.blargon7.com/#/functional/report/837c1e0f361ac93453ee69721961af4b
Windows: http://mozmill-crowd.blargon7.com/#/functional/report/837c1e0f361ac93453ee6972196358a8

2.0
===
OSX: http://mozmill-crowd.blargon7.com/#/functional/report/837c1e0f361ac93453ee697219668f39

I'm currently refreshing my Linux vm, it crashes randomly so I couldn't get a full testrun, the test run independently passes.
Assignee: nobody → andrei.eftimie
Status: NEW → ASSIGNED
Attachment #809813 - Flags: review?(andreea.matei)
Comment on attachment 809813 [details] [diff] [review]
1.patch

Review of attachment 809813 [details] [diff] [review]:
-----------------------------------------------------------------

Landed on:
http://hg.mozilla.org/qa/mozmill-tests/rev/873efca9cfb0 (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/54e78e9b5177 (aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/4fe794cb9584 (beta)
http://hg.mozilla.org/qa/mozmill-tests/rev/0fcc18a85f9c (release)
http://hg.mozilla.org/qa/mozmill-tests/rev/84909a10c30b (esr24)
http://hg.mozilla.org/qa/mozmill-tests/rev/c73a54014340 (esr17)

Note that esr17 will fail for 1.5.22 due to the select() method, on 1.5.23 it's all good.
Attachment #809813 - Flags: review?(andreea.matei) → review+
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: