From a0534ec9e8d2249d8e541c6447a4fa868d346918 Mon Sep 17 00:00:00 2001 From: Chris Manchester Date: Thu, 19 Feb 2015 17:41:37 -0800 Subject: [PATCH] Bug 1133468 - Use wait_for_condition rather than immediately checking for a url update in marionette's modal handling code.;r=automatedtester --- .../client/marionette/tests/unit/test_modal_dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/marionette/client/marionette/tests/unit/test_modal_dialogs.py b/testing/marionette/client/marionette/tests/unit/test_modal_dialogs.py index fcd1a12dabbb..fee07eb2defb 100644 --- a/testing/marionette/client/marionette/tests/unit/test_modal_dialogs.py +++ b/testing/marionette/client/marionette/tests/unit/test_modal_dialogs.py @@ -152,7 +152,7 @@ class TestTabModals(MarionetteTestCase): alert = self.marionette.switch_to_alert() self.assertTrue(alert.text.startswith("This page is asking you to confirm")) alert.accept() - self.assertEqual(self.marionette.get_url(), "about:blank") + self.wait_for_condition(lambda mn: mn.get_url() == "about:blank") @skip_if_e10s def test_unrelated_command_when_alert_present(self):