Using get_url_current_page wrapper method

In continuation to Imran's fix, I modified
test_dashboard_help_redirection so it will use pageobject's wrapper
method get_url_current_page instead of calling the selenium driver
directly.

Partially implements blueprint: selenium-integration-testing

Change-Id: I4e16dc03f615369177c9f1d1323cf364339b2803
This commit is contained in:
dkorn 2014-12-21 12:06:44 +02:00 committed by Daniel Korn
parent b9f6fc1630
commit f1b4357a9c

View File

@ -22,8 +22,8 @@ class TestDashboardHelp(helpers.TestCase):
self.home_pg.switch_window()
self.assertEqual(self.conf.dashboard.help_url,
self.driver.current_url,
self.home_pg.get_url_current_page(),
"help link did not redirect to the right URL")
self.driver.close()
self.home_pg.close_window()
self.home_pg.switch_window()