Closed Bug 1344419 Opened 7 years ago Closed 7 years ago

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'

Categories

(Testing :: Marionette Client and Harness, defect)

Version 3
defect
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, 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
Closed: 7 years ago
Resolution: --- → FIXED
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.