From ec3236d89cd4d8a4e13fae8b0ccbf020acf9be83 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 12 Jan 2022 22:23:40 -0800 Subject: [PATCH] tests: functional: Fix setting domain name with active notifications Looking for .btn-primary could yield two results when a notification is active with an action button of type primary. This results in form not getting submitted properly and test failing with wait timeout. Fix this by making the lookup for submit button more specific. Tests: - Run matrix-synapse functional tests on a fresh container. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/functional/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 1fb1e7047..651df6081 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -407,7 +407,7 @@ def app_can_be_disabled(browser, app_name): def set_domain_name(browser, domain_name): nav_to_module(browser, 'config') browser.find_by_id('id_domainname').fill(domain_name) - update_setup = browser.find_by_css('.btn-primary') + update_setup = browser.find_by_css('.btn-primary[type="submit"]') submit(browser, element=update_setup)