From f523af9bed5ea93e00a6d42d143814401b5cd62a Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Fri, 27 Nov 2015 17:24:12 +0300 Subject: [PATCH] Try to avoid intermittent test_dashboard_help_redirection failure Assuming that the additional browser window is actually opened after we command test to switch to it, swap these 2 commands. If it doesn't help, remove the failing test, because ensuring good network connectivity to external URLs is out of integration tests scope. Change-Id: I2c972a9ac813f30bb2ea7e6e7d366f729fd90bfb Related-Bug: #1520582 --- .../tests/test_dashboard_help_redirection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/test/integration_tests/tests/test_dashboard_help_redirection.py b/openstack_dashboard/test/integration_tests/tests/test_dashboard_help_redirection.py index 48913c383b..88e6f02934 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_dashboard_help_redirection.py +++ b/openstack_dashboard/test/integration_tests/tests/test_dashboard_help_redirection.py @@ -19,10 +19,10 @@ class TestDashboardHelp(helpers.TestCase): """Verifies Help link redirects to the right URL.""" self.home_pg.go_to_help_page() - self.home_pg.switch_window() - self.home_pg._wait_until( lambda _: self.home_pg.is_nth_window_opened(2)) + self.home_pg.switch_window() + self.assertEqual(self.CONFIG.dashboard.help_url, self.home_pg.get_url_current_page(), "help link did not redirect to the right URL")