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:
James Valleroy 2022-06-01 12:19:37 -04:00 committed by Sunil Mohan Adapa
parent 629ca17ac2
commit 90cef6e95c
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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