Closed Bug 1736061 Opened 3 years ago Closed 3 years ago

Ensure second page is loaded in test_switch_window_content.py test_switch_to_unloaded_tab before continuing

Categories

(Remote Protocol :: Marionette, task)

Default
task

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In trying to land bug 1735500, we hit upon some issues with the marionette-tests:

INFO - TEST-UNEXPECTED-FAIL | testing/marionette/harness/marionette_harness/tests/unit/test_switch_window_chrome.py TestSwitchToWindowContent.test_switch_to_unloaded_tab | AssertionError: 'about:blank' != 'data:text/html;charset=utf-8,%3Cp%3Ebar'
INFO - - about:blank
INFO - + data:text/html;charset=utf-8,%3Cp%3Ebar
INFO - Traceback (most recent call last):
INFO -   File "/opt/worker/tasks/task_163422320427828/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py", line 202, in run
INFO -     testMethod()
INFO -   File "/opt/worker/tasks/task_163422320427828/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_switch_window_content.py", line 189, in test_switch_to_unloaded_tab
INFO -     self.assertEqual(self.marionette.get_url(), second_page)

We believe the failures are because we are not waiting for the second_page to finish loading.

Blocks: 1735500
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15817b3871a1
Ensure second page is loaded in test_switch_window_content.py test_switch_to_unloaded_tab before continuing. r=whimboo,webdriver-reviewers
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: