Fixed broken acceptance tests
This commit is contained in:
@@ -84,19 +84,21 @@ class LanguageTest(UniqueCourseTest):
|
||||
|
||||
self.test_new_lang = 'eo'
|
||||
# This string is unicode for "ÇÜRRÉNT ÇØÜRSÉS", which should appear in our Dummy Esperanto page
|
||||
self.current_courses_text = u"\xc7\xdcRR\xc9NT \xc7\xd8\xdcRS\xc9S"
|
||||
self.current_courses_text = u'\xc7\xdcRR\xc9NT \xc7\xd6\xdcRS\xc9S'
|
||||
|
||||
self.username = "test"
|
||||
self.password = "testpass"
|
||||
self.email = "test@example.com"
|
||||
|
||||
def test_change_lang(self):
|
||||
AutoAuthPage(self.browser, course_id=self.course_id).visit()
|
||||
self.dashboard_page.visit()
|
||||
# Change language to Dummy Esperanto
|
||||
self.dashboard_page.change_language(self.test_new_lang)
|
||||
|
||||
self.browser.is_text_present(self.current_courses_text)
|
||||
self.assertTrue(self.browser.is_text_present(self.current_courses_text))
|
||||
|
||||
def test_language_persists(self):
|
||||
auto_auth_page = AutoAuthPage(self.browser, course_id=self.course_id)
|
||||
auto_auth_page = AutoAuthPage(self.browser, username=self.username, password=self.password, email=self.email, course_id=self.course_id)
|
||||
auto_auth_page.visit()
|
||||
|
||||
self.dashboard_page.visit()
|
||||
|
||||
Reference in New Issue
Block a user