mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
b2fea1b0de
commit
e99b7c942b
7 files changed
+94
-75
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user