Closed Bug 514696 Opened 16 years ago Closed 16 years ago

[mozmill] testIdentityPopupOpenClose.js fails due to focus issues

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Executing the test below will cause a timout when waiting for the identity popup. The error only applies when you run all the security tests. Running the test alone doesn't show this problem. Test Failed : testIdentityPopupOpenClose in c:\mozilla\tests\firefox\testSecurit y\testIdentityPopupOpenClose.js ERROR - Test Failure: {'exception': {'message': "timeout exceeded for waitForEva l('subject.state == 'open'')", 'lineNumber': 300, 'stack': 'Error("timeout excee I checked why the combination of tests is causing this timeout and I have noticed that our tests are too fast. Especially the grey larry one which gets run right before. The last action in this test is to close the page info window. Directly after we click in the next test on the identity popup box. We have to wait a bit so the page info window can close until the next test is started. We do not suffer from the problem if such actions are used inside a test itself. It only happens for several test modules. Eventually we should create a helper class for additional non-modal windows too.
Attachment #398688 - Flags: review?(adesai)
Attachment #398688 - Flags: review?(adesai) → review+
Comment on attachment 398688 [details] [diff] [review] Patch Looks good on my end and will remember to add these sleeps from now on. Also, I'd like to mention that this will need to be added for passwordManager and cookieManager testscripts.
Those sleeps aren't necessary all the time but until we have a better way to wait for the closing of the window we should add a sleep. Landed as: http://hg.mozilla.org/qa/mozmill-tests/rev/ddbd4a9286ec http://hg.mozilla.org/qa/mozmill-tests/rev/c2f933bd5702
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Mass 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.
Component: Security → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: firefox → mozmill-tests
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: