From 90cef6e95cdd2f559a81b12fbf7f37d4589d90d0 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Wed, 1 Jun 2022 12:19:37 -0400 Subject: [PATCH] wordpress: tests: Continue past language selection screen Tests: Functional tests for wordpress pass on stable container. Signed-off-by: James Valleroy [sunil: Make language selection presence optional] Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/wordpress/tests/test_functional.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plinth/modules/wordpress/tests/test_functional.py b/plinth/modules/wordpress/tests/test_functional.py index 4f73fd984..75236854e 100644 --- a/plinth/modules/wordpress/tests/test_functional.py +++ b/plinth/modules/wordpress/tests/test_functional.py @@ -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