From f5b34704eef779feff0ad20d60f69e4e3f118dfa Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 19 Dec 2020 09:28:18 -0500 Subject: [PATCH] tests: Skip initial update Signed-off-by: James Valleroy Reviewed-by: Veiko Aasa --- plinth/modules/upgrades/templates/update-firstboot.html | 2 +- plinth/tests/functional/__init__.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plinth/modules/upgrades/templates/update-firstboot.html b/plinth/modules/upgrades/templates/update-firstboot.html index 9f3b6e717..f46291da1 100644 --- a/plinth/modules/upgrades/templates/update-firstboot.html +++ b/plinth/modules/upgrades/templates/update-firstboot.html @@ -29,7 +29,7 @@ {{ form|bootstrap }} - diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 3bec1c31c..dafef6645 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -279,6 +279,10 @@ def login_with_account(browser, url, username, password): if '/firstboot/backports' in browser.url: submit(browser, element=browser.find_by_name('next')[0]) + if '/firstboot/update' in browser.url: + browser.find_by_id('id_update_now').uncheck() + submit(browser, element=browser.find_by_name('next')[0]) + ################# # App utilities #