tests: Improve waiting for installation and configuration

- Use Selenium's built-in waiting constructs to wait for page loads to complete
- Make tests independent of language (tested in Chinese)

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-04-08 12:35:47 -04:00
1 parent b2fea1b0de
commit e99b7c942b
7 files changed
+94 -75

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ def set_language(browser, language_code):
'/plinth/sys/users/{}/edit/'.format(username))
browser.find_by_xpath('//select[@id="id_language"]//option[@value="' +
language_code + '"]').first.click()
browser.find_by_css('input[type=submit]').click()
submit(browser)
def check_language(browser, language_code):