Backups: minor fixes of functional tests

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Michael Pimmer 2018-11-16 09:41:41 +01:00 committed by James Valleroy
parent 9cba16e0d0
commit 5fd8abcc1f
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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)