Closed
Bug 1085328
Opened 11 years ago
Closed 11 years ago
Test failure "The auto-complete result is a bookmark - 'favicon' should contain 'bookmark'" in /testAwesomeBar/testSuggestBookmarks.js
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P3)
Tracking
(firefox34 fixed, firefox35 fixed, firefox36 fixed, firefox37 fixed)
People
(Reporter: andrei, Assigned: teodruta)
References
()
Details
(Whiteboard: [mozmill-test-failure])
Attachments
(2 files, 3 obsolete files)
1.79 KB,
patch
|
AndreeaMatei
:
review+
AndreeaMatei
:
checkin+
|
Details | Diff | Splinter Review |
1.68 KB,
patch
|
AndreeaMatei
:
review+
AndreeaMatei
:
checkin+
|
Details | Diff | Splinter Review |
Module: testStarInAutocomplete
Test: /testAwesomeBar/testSuggestBookmarks.js
Failure: The auto-complete result is a bookmark - 'favicon' should contain 'bookmark'
Branches: 36, 35, 34
Platforms: Linux
Report: http://mozmill-daily.blargon7.com/#/functional/report/447e3274a76247e6567e1c2aa6034725
Seems to have started on 2014-10-13
Reporter | ||
Comment 1•11 years ago
|
||
Looking more into this, it might be fallout from bug 1067888
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → teodor.druta
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
Can't reproduce, watching this bug to see if it will reproduce in the future.
Assignee | ||
Comment 3•11 years ago
|
||
There are 3 bugs including this one, with failures related to this test (Bug 1106736, Bug 978708). They are actually all related to the same problem.
Investigating those issues locally, I went into what it seemed another problem "locationBar.autoCompleteResults.getResult(1);" returned null, that was because there wasn't really an item with that index. This test actually worked wrong, it wasn't doing what it supposed to do, by getting the autocomplete result at index 1, it was taking a hidden favicon result leftover from testFaviconInAutocomplete, sometimes this was actually the mozilla grant page that's why it didn't failed, sometimes it was other page. This led me to think that there is another issue with testFaviconInAutocomplete, which will require further investigation on that part. What we need here is to wait for the visible results to load, which should contain only one visible item in this case, then get the autocomplete result at index 0, instead of 1.
So, I attached to this bug a patch of my proposal fix.
Attachment #8535685 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8535685 -
Flags: review?(andreea.matei)
Comment 4•11 years ago
|
||
Comment on attachment 8535685 [details] [diff] [review]
fixtestsuggestbookmarks.patch
Review of attachment 8535685 [details] [diff] [review]:
-----------------------------------------------------------------
::: firefox/tests/functional/testAwesomeBar/testSuggestBookmarks.js
@@ +49,5 @@
> // Bookmark the test page via bookmarks menu
> var bookmarksPanel = editBookmarksPanel.getElement({type: "bookmarkPanel"});
> toolbars.waitForNotificationPanel(() => {
> + var bookmarkPage = findElement.ID(controller.window.document, "menu_bookmarkThisPage")
> + bookmarkPage.waitThenClick();
Please do not replace the mainMenu handling code. Can you please explain why you did that?
@@ +79,5 @@
> }, "Autocomplete list has been opened");
>
> + // Wait for visible autocomplete results to load
> + assert.waitFor(() => locationBar.autoCompleteResults.visibleResults.length > 0,
> + "Visible autocomplete results have loaded");
In your last comment you said that we have to wait for exactly 1 entry. This is not what the patch is doing.
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #4)
> Comment on attachment 8535685 [details] [diff] [review]
> fixtestsuggestbookmarks.patch
>
> Review of attachment 8535685 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: firefox/tests/functional/testAwesomeBar/testSuggestBookmarks.js
> @@ +49,5 @@
> > // Bookmark the test page via bookmarks menu
> > var bookmarksPanel = editBookmarksPanel.getElement({type: "bookmarkPanel"});
> > toolbars.waitForNotificationPanel(() => {
> > + var bookmarkPage = findElement.ID(controller.window.document, "menu_bookmarkThisPage")
> > + bookmarkPage.waitThenClick();
>
> Please do not replace the mainMenu handling code. Can you please explain why
> you did that?
>
Actually in my local investigations I sometimes, very rarely encountered the "Notification popup state has been opened" failure, the waitThenClick seemed to help with this, but I admit I might be wrong that it helps in this particular case.
> @@ +79,5 @@
> > }, "Autocomplete list has been opened");
> >
> > + // Wait for visible autocomplete results to load
> > + assert.waitFor(() => locationBar.autoCompleteResults.visibleResults.length > 0,
> > + "Visible autocomplete results have loaded");
>
> In your last comment you said that we have to wait for exactly 1 entry. This
> is not what the patch is doing.
For this particular test we require just one visible autocomplete entry, but imo we shouldn't exclude the possibility of there being more than one visible suggestion.
Comment 6•11 years ago
|
||
(In reply to Teodor Druta from comment #5)
> > > + var bookmarkPage = findElement.ID(controller.window.document, "menu_bookmarkThisPage")
> > > + bookmarkPage.waitThenClick();
> >
> > Please do not replace the mainMenu handling code. Can you please explain why
> > you did that?
>
> Actually in my local investigations I sometimes, very rarely encountered the
> "Notification popup state has been opened" failure, the waitThenClick seemed
> to help with this, but I admit I might be wrong that it helps in this
> particular case.
If that turns out to be a problem with the MenuAPI implementation it should be filed as a bug against mozmill. That way we could include it in the last upcoming release.
> For this particular test we require just one visible autocomplete entry, but
> imo we shouldn't exclude the possibility of there being more than one
> visible suggestion.
Tests are very specific and have pre-defined requisites. With a clean setup the test should not see more than two entries, right? This particular check could mask a particular failure.
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #6)
> If that turns out to be a problem with the MenuAPI implementation it should
> be filed as a bug against mozmill. That way we could include it in the last
> upcoming release.
>
I'll try to look more into this, in order to find out if this is really an issue.
> Tests are very specific and have pre-defined requisites. With a clean setup
> the test should not see more than two entries, right? This particular check
> could mask a particular failure.
Verifying against a single result should really show if there is a problem, and will be an easier way to find eventual future changes in the UI of the autocomplete feature.
Attachment #8535685 -
Attachment is obsolete: true
Attachment #8535685 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8535685 -
Flags: review?(andreea.matei)
Attachment #8536590 -
Flags: feedback?(hskupin)
Comment 8•11 years ago
|
||
Comment on attachment 8536590 [details] [diff] [review]
fixtestsuggestbookmark.patch
Review of attachment 8536590 [details] [diff] [review]:
-----------------------------------------------------------------
::: firefox/tests/functional/testAwesomeBar/testSuggestBookmarks.js
@@ +53,5 @@
> }, {type: "bookmark", panel: bookmarksPanel});
>
> toolbars.waitForNotificationPanel(() => {
> var doneButton = editBookmarksPanel.getElement({type: "doneButton"});
> + doneButton.waitThenClick();
Why is that change needed? The done button should always exist.
@@ +78,5 @@
> }, "Autocomplete list has been opened");
>
> + // Wait for visible autocomplete results to load
> + assert.waitFor(() => locationBar.autoCompleteResults.visibleResults.length === 1,
> + "Visible autocomplete results have loaded");
Please be very explicit in what we are waiting for. This message does not tell anything, and we will ask ourselves again when changes to the behavior are made.
Also I do not see any reason for this comment, which plainly a duplication of the message.
@@ +84,2 @@
> // Define the path to the second auto-complete result
> + var richlistItem = locationBar.autoCompleteResults.getResult(0);
The comment above does no longer match the code.
Attachment #8536590 -
Flags: feedback?(hskupin) → feedback+
Assignee | ||
Comment 9•11 years ago
|
||
Thanks for the feedback, Henrik !
Attachment #8536590 -
Attachment is obsolete: true
Attachment #8537126 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8537126 -
Flags: review?(andreea.matei)
Comment 10•11 years ago
|
||
Comment on attachment 8537126 [details] [diff] [review]
fixsuggestbookmarks.patch
Review of attachment 8537126 [details] [diff] [review]:
-----------------------------------------------------------------
::: firefox/tests/functional/testAwesomeBar/testSuggestBookmarks.js
@@ +76,5 @@
> assert.waitFor(function () {
> return locationBar.autoCompleteResults.isOpened;
> }, "Autocomplete list has been opened");
>
> + // Wait for one visible autocomplete result to be visible
What Henrik mentioned before was "Also I do not see any reason for this comment, which plainly a duplication of the message." related to this comment. It can be removed.
Otherwise we're good to land with the new patch.
Attachment #8537126 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8537126 -
Flags: review?(andreea.matei)
Attachment #8537126 -
Flags: review+
Assignee | ||
Comment 11•11 years ago
|
||
Sorry, I think I missed that out, removed the comment.
Attachment #8537126 -
Attachment is obsolete: true
Attachment #8538449 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8538449 -
Flags: review?(andreea.matei)
Comment 12•11 years ago
|
||
Comment on attachment 8538449 [details] [diff] [review]
fixtestsuggestbookmarks.patch
Review of attachment 8538449 [details] [diff] [review]:
-----------------------------------------------------------------
http://hg.mozilla.org/qa/mozmill-tests/rev/6f0285e476a9 (default)
Attachment #8538449 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8538449 -
Flags: review?(andreea.matei)
Attachment #8538449 -
Flags: review+
Updated•11 years ago
|
status-firefox37:
--- → fixed
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8538449 [details] [diff] [review]
fixtestsuggestbookmarks.patch
I think that we should push this patch to mozilla-beta, it should fix the issues reported today in Bug 1106736
Attachment #8538449 -
Flags: checkin?(andreea.matei)
Comment 14•11 years ago
|
||
Merge pushed the fix on aurora too, this is beta:
http://hg.mozilla.org/qa/mozmill-tests/rev/53044b799975 (beta)
Assignee | ||
Comment 15•11 years ago
|
||
Here is the backported patch for mozilla-release branch.
Attachment #8548779 -
Flags: review?(andreea.matei)
Attachment #8548779 -
Flags: checkin?(andreea.matei)
Comment 16•11 years ago
|
||
Comment on attachment 8548779 [details] [diff] [review]
fixsgstbkmrksrls.patch
Review of attachment 8548779 [details] [diff] [review]:
-----------------------------------------------------------------
http://hg.mozilla.org/qa/mozmill-tests/rev/60707164cf71 (release)
Attachment #8548779 -
Flags: review?(andreea.matei)
Attachment #8548779 -
Flags: review+
Attachment #8548779 -
Flags: checkin?(andreea.matei)
Attachment #8548779 -
Flags: checkin+
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #8538449 -
Flags: checkin?(andreea.matei) → checkin+
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•