Added test for /home/ redirect.

This commit is contained in:
Jonathan Piacenti
2014-11-28 16:52:00 +00:00
committed by E. Kolpakov
parent f8f08b78a9
commit fc4eed4240

View File

@@ -88,6 +88,15 @@ class CoursePagesTest(StudioCourseTest):
]
]
def test_page_redirect(self):
"""
/course/ is the base URL for all courses, but by itself, it should
redirect to /home/.
"""
self.dashboard_page = DashboardPage(self.browser)
self.dashboard_page.visit()
self.assertEqual(self.browser.current_url.strip('/').rsplit('/')[-1], 'home')
@skip('Intermittently failing with Page not found error for Assets. TE-418')
def test_page_existence(self):
"""