Closed Bug 1221090 Opened 9 years ago Closed 9 years ago

TEST-UNEXPECTED-ERROR | test_safe_browsing_warning_pages.py TestSafeBrowsingWarningPages.test_warning_pages | TimeoutException: TimeoutException: Timed out after 30.1 seconds

Categories

(Testing :: Firefox UI Tests, defect)

45 Branch
defect
Not set
normal

Tracking

(firefox42 fixed, firefox43 fixed, firefox44 fixed, firefox45 fixed, firefox-esr38 fixed)

RESOLVED FIXED
mozilla45
Tracking Status
firefox42 --- fixed
firefox43 --- fixed
firefox44 --- fixed
firefox45 --- fixed
firefox-esr38 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(1 file)

52 bytes, text/x-github-pull-request
impossibus
: review+
Details | Review
Traceback (most recent call last):
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\lib\site-packages\marionette\marionette_test.py", line 313, in run
testMethod()
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\Lib\site-packages\firefox_ui_tests\functional\security\test_safe_browsing_warning_pages.py", line 58, in test_warning_pages
self.check_report_button(unsafe_page)
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\Lib\site-packages\firefox_ui_tests\functional\security\test_safe_browsing_warning_pages.py", line 93, in check_report_button
lambda mn: mn.execute_script('return document.readyState == "complete";')
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\lib\site-packages\marionette_driver\wait.py", line 143, in until
cause=last_exc)
TimeoutException: TimeoutException: Timed out after 30.1 seconds

Checking the screenshot I can see that Firefox is waiting on SUMO for loading something from geo.mozilla.org which is not responding. I think we should not wait for readyState `complete` but `DOMContentLoaded`.
So as long as we cannot register an event listener (1121702) or have a better way to control page loads via Marionette, we cannot only listen for `DOMContentLoaded`. Reason is that the `complete` event can be fired right away and letting Marionette not see it. This would cause a hang. It means that we have to check both events.
Attached file Github PR
Attachment #8682533 - Flags: review?(mjzffr)
Blocks: 1214378
Merged the PR to mozilla-central as:
https://github.com/mozilla/firefox-ui-tests/commit/c976c3ebd298a6b47182dbe5cd11e041b0725f11

I will backport this patch tomorrow.
Target Milestone: --- → Firefox 45
Product: Mozilla QA → Testing
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: