From 5935ce89a64f5c36a782de10390e7f0bbe9be726 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 30 Aug 2022 22:23:38 -0700 Subject: [PATCH] sso: tests: functional: Find forms more accruately Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/sso/templates/login.html | 2 +- plinth/tests/functional/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/sso/templates/login.html b/plinth/modules/sso/templates/login.html index 9c8c5ab13..0b9938dc7 100644 --- a/plinth/modules/sso/templates/login.html +++ b/plinth/modules/sso/templates/login.html @@ -8,7 +8,7 @@ {% block content %} -
+
{% csrf_token %} diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index ad20a0b9c..db024270b 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -284,7 +284,7 @@ def login_with_account(browser, url, username, password=None): if login_button: browser.fill('username', username) browser.fill('password', password) - submit(browser) + submit(browser, form_class='form-login') else: browser.visit(base_url + '/plinth/firstboot/welcome') submit(browser, form_class='form-start') # "Start Setup" button