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 authored and Sunil Mohan Adapa committed 2022-06-06 11:16:47 -07:00
1 parent 629ca17ac2
commit 90cef6e95c
1 file changed
+4
@@ -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