Closed Bug 1043409 Opened 10 years ago Closed 10 years ago

Test failure "Username has been saved - '' should equal 'bar" in testPasswordSavedAndDeleted.js

Categories

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

defect

Tracking

(firefox33 fixed, firefox34 fixed)

RESOLVED FIXED
Tracking Status
firefox33 --- fixed
firefox34 --- fixed

People

(Reporter: AndreeaMatei, Assigned: danisielm)

References

()

Details

(Keywords: regression, Whiteboard: [mozmill-test-failure])

Attachments

(2 files)

Daniel, can you please look into this? Thanks.
Assignee: nobody → daniel.gherasim
Status: NEW → ASSIGNED
Priority: -- → P2
Flags: needinfo?(daniel.gherasim)
I can't reproduce this locally but on the CI machine (mm-ub-1310-64) this fails a lot.
I'll continue looking into this & come with more information.
Flags: needinfo?(daniel.gherasim)
Found out that this failure started on 30 june.

Here is a pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=afa67a2f7905&tochange=c3387c5ddba9

Last good build (with no failure):
ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds/mozilla-central-linux64/1404036126/
Last bad build (fails very often):
ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds/mozilla-central-linux64/1404085289/

I can also reproduce this with the latest nightly.
Not sure why it's only reproducible on CI, but I'll try to find a regressor soon.
That's the pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=0b5918ec6521&tochange=2f1356e9b56d

This is the regressor: bug 949617. There was the same problem with an internal test & the problem was that master password response to complete the inputs may come a bit delayed & here is their fix: https://bugzilla.mozilla.org/attachment.cgi?id=8447418&action=diff ..

I will come with a fix here soon too.
Attached patch v1.patchSplinter Review
Fixes the problem on the affected machines.
Attachment #8462492 - Flags: review?(andrei.eftimie)
Attachment #8462492 - Flags: review?(andreea.matei)
Comment on attachment 8462492 [details] [diff] [review]
v1.patch

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

So the problem for our bug is that the login items are now async.
Simple solution, I like it.

If this fixes the problem, lets get this in:

https://hg.mozilla.org/qa/mozmill-tests/rev/a89e0282a11a (default)
https://hg.mozilla.org/qa/mozmill-tests/rev/1c35e5bc75d9 (mozilla-aurora)
Attachment #8462492 - Flags: review?(andrei.eftimie)
Attachment #8462492 - Flags: review?(andreea.matei)
Attachment #8462492 - Flags: review+
Attachment #8462492 - Flags: checkin+
I don't think we need to backport this further.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 949617
Comment on attachment 8462492 [details] [diff] [review]
v1.patch

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

::: firefox/tests/functional/testPreferences/testPasswordSavedAndDeleted.js
@@ +77,5 @@
>  
>    controller.waitForElement(userField);
> +  expect.waitFor(() => userField.getNode().value === "bar",
> +                 "Username has been saved");
> +  expect.waitFor(() =>passField.getNode().value === "foo",

There is a missing blank after the => operator, and also you should use brackets around the comparison because it's not a simple return value.
Attached patch follow-up.patchSplinter Review
Attachment #8468420 - Flags: review?(andrei.eftimie)
Attachment #8468420 - Flags: review?(andreea.matei)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 8468420 [details] [diff] [review]
follow-up.patch

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

Looks good:
https://hg.mozilla.org/qa/mozmill-tests/rev/dfa389c936fd (default)
https://hg.mozilla.org/qa/mozmill-tests/rev/9c6ed92c41f5 (mozilla-aurora)
Attachment #8468420 - Flags: review?(andrei.eftimie)
Attachment #8468420 - Flags: review?(andreea.matei)
Attachment #8468420 - Flags: review+
Attachment #8468420 - Flags: checkin+
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.