mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Backups: minor fixes of functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
9cba16e0d0
commit
5fd8abcc1f
@ -17,6 +17,7 @@
|
||||
|
||||
import os
|
||||
|
||||
from pytest import fixture
|
||||
from pytest_bdd import given, parsers, then, when
|
||||
|
||||
from support import system
|
||||
@ -38,6 +39,11 @@ language_codes = {
|
||||
}
|
||||
|
||||
|
||||
@fixture(scope='session')
|
||||
def downloaded_file_info():
|
||||
return dict()
|
||||
|
||||
|
||||
@given(parsers.parse('the default app is {app_name:w}'))
|
||||
def set_default_app(browser, app_name):
|
||||
system.set_default_app(browser, app_name)
|
||||
|
||||
@ -222,7 +222,7 @@ def backup_upload_and_restore(browser, app_name, downloaded_file_path):
|
||||
# submit upload form
|
||||
submit(browser)
|
||||
# submit restore form
|
||||
with wait_for_page_update(browser, expected_url='/plinth/sys/backups/'):
|
||||
with wait_for_page_update(browser):
|
||||
submit(browser)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user