Closed Bug 949428 Opened 11 years ago Closed 11 years ago

Test failure "Search bar has the focus - '[object HTMLInputElement]' should equal '[object XULElement]'" in testSearchViaShortcut.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(firefox29 fixed)

RESOLVED FIXED
Tracking Status
firefox29 --- fixed

People

(Reporter: AndreeaMatei, Assigned: mario.garbi)

References

()

Details

(Whiteboard: [mozmill-test-failure])

Attachments

(2 files, 1 obsolete file)

Started failing today with Nightly, so far on all OS X machines. Might be a regression.

Mario, could you please check this out? And please prepare a skip patch if it turns out it's reproducible all the time.
Attached patch skip.patch (obsolete) — Splinter Review
Added a skip patch for OSX platforms only as I cannot reproduce it on Linux or Windows locally and we only had OSX failures on CI.
Coming with a fix patch as soon as possible.
Assignee: nobody → mario.garbi
Attachment #8346526 - Flags: review?(andrei.eftimie)
Attachment #8346526 - Flags: review?(andreea.matei)
Comment on attachment 8346526 [details] [diff] [review]
skip.patch

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

Disabled:
http://hg.mozilla.org/qa/mozmill-tests/rev/bb4513f7af0b (default)
Attachment #8346526 - Flags: review?(andrei.eftimie)
Attachment #8346526 - Flags: review?(andreea.matei)
Attachment #8346526 - Flags: review+
Status: NEW → ASSIGNED
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][mozmill-test-skipped]
This fails on Linux as well. Please do a follow up to skip it completely.
http://mozmill-daily.blargon7.com/#/functional/report/ca1869364f98dd0de71202e01e14f7ad
OS: Mac OS X → All
Attached patch Patch_v2Splinter Review
Followup skip patch for all platforms.
Attachment #8346526 - Attachment is obsolete: true
Attachment #8346553 - Flags: review?(andrei.eftimie)
Attachment #8346553 - Flags: review?(andreea.matei)
Comment on attachment 8346553 [details] [diff] [review]
Patch_v2

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

http://hg.mozilla.org/qa/mozmill-tests/rev/2ca8396f9bdf (default)
Attachment #8346553 - Flags: review?(andrei.eftimie)
Attachment #8346553 - Flags: review?(andreea.matei)
Attachment #8346553 - Flags: review+
This fails due to focusing the search bar via shortcut, if we change to anything else it will pass.

This was introduced by bug 901207, changeset http://hg.mozilla.org/mozilla-central/rev/3cafeb339fac

The Cmd + k / Cmd + j (linux) should focus the search bar, but instead it navigates to "Search engine" home page. This happened by the changing of the BrowserSearch:webSearch method (see the changeset).

If this is an expected behavior we should change our test.

Jared can you please confirm that this is an expected behavior?
Depends on: 901207
Flags: needinfo?(jaws)
This was not an expected behavior but was just fixed in today's Nightly build (see https://bugzilla.mozilla.org/show_bug.cgi?id=949365).

You can either reenable your test, or remove the mozmill test now since we have a duplicate test in the mochitest-browser suite: http://mxr.mozilla.org/mozilla-central/source/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js
Flags: needinfo?(jaws)
Thanks Jared for fixing this issue. In terms of removing, we don't want to do that given that this test is covering a keyboard shortcut which can be different in each locale. Mochitest only runs in en-US while we run nearly each locale. So keeping this test has a very high value. Lets reenable it.
Ok, thanks for the explanation. Glad that it was resolved so quickly.
Attached patch unskip.patchSplinter Review
Unskipped the test.
It passes with the latest Nightly.
Attachment #8347902 - Flags: review?(andreea.matei)
Blocks: 901207
Depends on: 949365
No longer depends on: 901207
Comment on attachment 8347902 [details] [diff] [review]
unskip.patch

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

Looks fine. Please land it as soon as you can so we can verify the fix across all platforms.
Attachment #8347902 - Flags: review?(andreea.matei) → review+
Unskip landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/400a2a2447ba (default)

We should be good here.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-test-failure][mozmill-test-skipped] → [mozmill-test-failure]
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: