Closed Bug 894883 Opened 12 years ago Closed 12 years ago

Failure "The Add-ons Manager has been opened in a second tab - '1' should equal '2'' in /testAddons/testManagerKeyboardShortcut.js

Categories

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

x86_64
Windows 7
defect

Tracking

(firefox23 fixed, firefox24 fixed, firefox25 fixed, firefox26 fixed, firefox-esr17 fixed)

RESOLVED FIXED
Tracking Status
firefox23 --- fixed
firefox24 --- fixed
firefox25 --- fixed
firefox26 --- fixed
firefox-esr17 --- fixed

People

(Reporter: cosmin-malutan, Assigned: cosmin-malutan)

References

()

Details

(Whiteboard: [mozmill-test-failure])

Attachments

(3 files)

Happened today on Windows 7 x64 with Aurora Report http://mozmill-ci.blargon7.com/#/functional/report/5aa1ca5e7015e3740d269dc947a837a0 I couldn't reproduce it locally neither manual or as testrun : http://mozmill-crowd.blargon7.com/#/functional/report/5aa1ca5e7015e3740d269dc947abc7a0
Priority: -- → P3
I haven't seen this again on the old mozmill-ci, neither on mozmill-daily. Updating the url so we can keep track. Please reopen if needed.
Assignee: nobody → cosmin.malutan
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Is it reproducible with this locale?
Yes, I will investigate this now.
Hi, I investigated this and the reason why it fails is that the browser it checks if the tab is empty or not, and if it is will open the addonsManager tab in the same tab: Here it checks the tab: http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#6266 Here it checks the url of tab: http://mxr.mozilla.org/mozilla-central/source/browser/base/content/utilityOverlay.js#46 We can solve this in different ways: http://hg.mozilla.org/qa/mozmill-tests/file/default/tests/functional/testAddons/testManagerKeyboardShortcut.js#l33 1 - By doing a checking like the browser does before opening addons manager so if the page appears to be empty the tabs count we check should still be 1 2 - Before opening the addons manager, we could navigate to "mozilla.org" so the page will never be empty and the tabs count will be 2 every time if the addons manager tabs opens correctly 3 - By checking the active tab url to be "about:addons"
I personally prefer the last one.
Second option is out of the question, the first I feel is too complicated for what this test is supposed to do. We have 2 behaviors when we open a page from a loaded tab or an empty tab, but it's tabs general behavior, not related to addons manager. The last sounds good for what the test has to do.
Comment on attachment 793398 [details] [diff] [review] patch_v1.0 Review of attachment 793398 [details] [diff] [review]: ----------------------------------------------------------------- Please make the commit message more general next time and add flags for what branches are affected here to backport. http://hg.mozilla.org/qa/mozmill-tests/rev/e1728238c974 (default)
Attachment #793398 - Flags: review?(andreea.matei) → review+
Comment on attachment 793398 [details] [diff] [review] patch_v1.0 Review of attachment 793398 [details] [diff] [review]: ----------------------------------------------------------------- ::: tests/functional/testAddons/testManagerKeyboardShortcut.js @@ +29,5 @@ > */ > function testKeyboardShortcut() { > addonsManager.open({type: "shortcut"}); > > + expect.equal(controller.tabs.activeTab.URL, "about:addons", Please change that in a follow-up to ´.location´. URL is used internally and is not part of the DOM spec. Thanks.
Attached patch follow-up patchSplinter Review
Here is the follow up patch. Thanks.
Attachment #794618 - Flags: review?(andrei.eftimie)
Attachment #794618 - Flags: review?(andreea.matei)
Comment on attachment 794618 [details] [diff] [review] follow-up patch Review of attachment 794618 [details] [diff] [review]: ----------------------------------------------------------------- Follow up landed: http://hg.mozilla.org/qa/mozmill-tests/rev/0a436bcfec07 (default) Please flag the affected branches here and create a combined patch if necessary. Thanks.
Attachment #794618 - Flags: review?(andrei.eftimie)
Attachment #794618 - Flags: review?(andreea.matei)
Attachment #794618 - Flags: review+
Status: REOPENED → ASSIGNED
Attached patch patch_v2.0Splinter Review
This patch lands clearly on Esr, Aurora, Release and Beta and it fixes the bug
Attachment #795349 - Flags: review?(andrei.eftimie)
Attachment #795349 - Flags: review?(andreea.matei)
Attachment #795349 - Flags: review?(andrei.eftimie)
Attachment #795349 - Flags: review?(andreea.matei)
Attachment #795349 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Whiteboard: [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

Created:
Updated:
Size: