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)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronmt, Assigned: aaronmt)
References
()
Details
Attachments
(1 file, 2 obsolete files)
3.59 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
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
Comment 1•14 years ago
|
||
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?
Assignee | ||
Comment 2•14 years ago
|
||
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
Comment 3•14 years ago
|
||
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?
Updated•14 years ago
|
Version: unspecified → Trunk
Assignee | ||
Comment 4•14 years ago
|
||
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
Comment 5•14 years ago
|
||
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-
Assignee | ||
Comment 6•14 years ago
|
||
+ Added a simple API function
Attachment #486352 -
Attachment is obsolete: true
Attachment #486648 -
Flags: review?(hskupin)
Assignee | ||
Comment 7•14 years ago
|
||
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 8•14 years ago
|
||
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+
Comment 9•14 years ago
|
||
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
Comment 10•14 years ago
|
||
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
Updated•5 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
•