mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
wordpress: tests: Continue past language selection screen
Tests: Functional tests for wordpress pass on stable container. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> [sunil: Make language selection presence optional] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
629ca17ac2
commit
90cef6e95c
@ -100,6 +100,10 @@ def _visit_site(browser):
|
||||
"""Visit WordPress and run the first setup wizard if needed."""
|
||||
_load_site(browser)
|
||||
if '/install.php' in browser.url:
|
||||
# continue past language selection screen
|
||||
if browser.find_by_id('language-continue'):
|
||||
browser.find_by_id('language-continue').click()
|
||||
|
||||
browser.fill('weblog_title', 'Test Blog')
|
||||
browser.fill('user_name', functional.config['DEFAULT']['username'])
|
||||
# browser.fill() once does not work for some reason for password field
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user