Closed Bug 595226 Opened 14 years ago Closed 14 years ago

Test failure in testSetMasterPassword (test1.js) [default]

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronmt, Assigned: aaronmt)

References

()

Details

Attachments

(1 file, 2 obsolete files)

MODULE: firefox/restartTests/testMasterPassword/test1.js TEST: testSetMasterPassword FAIL: Expression "{"value":"password-save"}" returned null. Anonymous == false BRANCH: default http://hg.mozilla.org/qa/mozmill-tests/file/2140b48d7c42/firefox/restartTests/testMasterPassword/test1.js#l83 This is a result of the removal of the traditional browser notification in replace of the doorh-hanger style from bug 567814
Our other tests aren't affected and getTabPanelElement still works? So we simply have to check for another element in the new notification. Geo, can you take it?
Looks like this also affects testSavePasswordAndDeleted.js, which has a getProperty change, when fixed also has the issue here. Does getTabPanelElement work with door hanger notifications? If not, looks like we have to get the button from a lookup
I'm not sure. But I would tend to say, no. Are the door hanger notifications bound to the current tab in the DOM? Means are those elements childs of the tab itself or is there a reference to the real node from the tab element?
Version: unspecified → Trunk
Recent test failure result shows it failing http://mozmill-release.brasstacks.mozilla.com/#/general/report/4a2217a8a22f02aec478e6684a158853 Fixed in this patch with the door hanger API
Assignee: nobody → aaron.train
Status: NEW → ASSIGNED
Attachment #486352 - Flags: review?(hskupin)
Comment on attachment 486352 [details] [diff] [review] Patch v1 - (default) [door hanger API fix] >+ var notification = locationBar.getNotificationElement( >+ "password-save-notification" >+ ); [..] >+ // After clicking the 'Remember Password' button, check notification state >+ controller.waitFor(function() { >+ return notification.getNode().parentNode.state == 'closed'; >+ }, "Password notification should be closed", TIMEOUT); In certain situations this can fail. Not in this particular test but if the notification gets replaced you will operate on a non-existent node. Instead of using the password notification and walking up the DOM, please add a new function to the ToolbarsAPI called getNotification which returns the notification popup element (#notification-popup).
Attachment #486352 - Flags: review?(hskupin) → review-
+ Added a simple API function
Attachment #486352 - Attachment is obsolete: true
Attachment #486648 - Flags: review?(hskupin)
Comment adjustment to not reflect door hanger specific
Attachment #486648 - Attachment is obsolete: true
Attachment #486651 - Flags: review?(hskupin)
Attachment #486648 - Flags: review?(hskupin)
Comment on attachment 486651 [details] [diff] [review] Patch v1.1 - (default) [door hanger API fix + testToolbarAPI addition] >+var toolbars = require("../../../shared-modules/testToolbarAPI"); A bit bit-rotted. This should use the new toolbars module now. >+ controller.waitFor(function() { >+ return notification.getNode().state == 'closed'; >+ }, "Password notification should be closed", TIMEOUT); And here we don't need the timeout at the end. We default to 5s now. I will make those changes before the check-in. Thanks Aaron!
Attachment #486651 - Flags: review?(hskupin) → review+
Landed on default as: http://hg.mozilla.org/qa/mozmill-tests/rev/8c3ca4e826ae Btw. there is no need to explicitly call out the branch name in the patch commit message. You can simply drop that.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Version: Trunk → unspecified
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: