Intermittent test_window_handles_content.py TestWindowHandles.test_window_handles_after_closing_original_tab | AssertionError: u'about:blank' != 'http://127.0.0.1:49317/empty.html'

RESOLVED FIXED in Firefox 55

Status

defect
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: intermittent-bug-filer, Assigned: nitishplus98)

Tracking

({intermittent-failure})

Version 3
mozilla55
Points:
---

Firefox Tracking Flags

(firefox55 fixed)

Details

(Whiteboard: [fixed by bug 1344647])

13:30:06    ERROR -  TEST-UNEXPECTED-FAIL | test_window_handles_content.py TestWindowHandles.test_window_handles_after_closing_original_tab | AssertionError: u'about:blank' != 'http://127.0.0.1:49317/empty.html'
13:30:06     INFO -  Traceback (most recent call last):
13:30:06     INFO -    File "C:\slave\test\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 166, in run
13:30:06     INFO -      testMethod()
13:30:06     INFO -    File "C:\slave\test\build\tests\marionette\tests\testing\marionette\harness\marionette_harness\tests\unit\test_window_handles_content.py", line 92, in test_window_handles_after_closing_original_tab
13:30:06     INFO -      self.assertEqual(self.marionette.get_url(), self.empty_page)

The failure happens here:

https://dxr.mozilla.org/mozilla-central/rev/8d026c60151005ad942e3d4389318fe28a0c8c54/testing/marionette/harness/marionette_harness/tests/unit/test_window_handles_content.py#92

The test might be so fast that even the empty page hasn't been loaded yet into the second tab. It looks like when accessing the current URL we should always run Wait().until().
Assignee: nobody → nitishplus98
Whiteboard: [fixed by bug 1344647]
Target Milestone: --- → mozilla55
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.