From 63ab11143a02374e5a7e80cd76f34e7b2e35fea9 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 20 May 2020 11:19:37 -0700 Subject: [PATCH] test: functional: Fix for Apache restart after domain change Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/tests/functional/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 2f757e2f5..9ea5bc4bb 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -337,6 +337,10 @@ def set_domain_name(browser, domain_name): nav_to_module(browser, 'config') browser.find_by_id('id_domainname').fill(domain_name) submit(browser) + # After a domain name change, Let's Encrypt will reload the web server and + # could cause a connection failure. + if browser.find_by_id('netErrorButtonContainer'): + browser.visit(browser.url) ########################