From 7ef98a74d6d4a6f04bbb05213accbe0cd2a09aa0 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 30 Aug 2022 22:21:51 -0700 Subject: [PATCH] first_boot: tests: functional: Find form more specifically Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/first_boot/templates/firstboot_welcome.html | 2 +- plinth/tests/functional/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/first_boot/templates/firstboot_welcome.html b/plinth/modules/first_boot/templates/firstboot_welcome.html index eaee1b874..20cd4092e 100644 --- a/plinth/modules/first_boot/templates/firstboot_welcome.html +++ b/plinth/modules/first_boot/templates/firstboot_welcome.html @@ -17,7 +17,7 @@ no-brand src="{% static 'theme/img/freedombox-logo-standard.svg' %}"/> -
+ {% csrf_token %} {% if show_wizard_password_prompt %} diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 92e35ad02..ad20a0b9c 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -287,7 +287,7 @@ def login_with_account(browser, url, username, password=None): submit(browser) else: browser.visit(base_url + '/plinth/firstboot/welcome') - submit(browser) # click the "Start Setup" button + submit(browser, form_class='form-start') # "Start Setup" button _create_admin_account(browser, username, password) if '/network-topology-first-boot' in browser.url: submit(browser, element=browser.find_by_name('skip')[0])