From 5ed09841865eb0c309f1501c6de15fc454478db7 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 15 Feb 2022 14:22:09 +0100 Subject: fix loading initial data and verify it in automated tests --- test/unit/test_indexeddb.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'test/unit') diff --git a/test/unit/test_indexeddb.py b/test/unit/test_indexeddb.py index 9f31480..c2d5427 100644 --- a/test/unit/test_indexeddb.py +++ b/test/unit/test_indexeddb.py @@ -429,11 +429,14 @@ def test_haketilodb_track(driver, execute_in_page, wait_elem_text): }, 'file': { 'sha256': sample_files_by_sha256 - } + }, + 'repo': [ + 'https://hydril2.la/' + ] } execute_in_page('returnval(save_items(arguments[0]));', sample_data) execute_in_page('returnval(set_setting("option22", "abc"));') - execute_in_page('returnval(set_repo("https://hydril2.la"));') + execute_in_page('returnval(set_repo("https://hydril3.la/"));') execute_in_page('returnval(set_allowed("ftp://a.bc/"));') driver.switch_to.window(windows[0]) @@ -442,7 +445,8 @@ def test_haketilodb_track(driver, execute_in_page, wait_elem_text): ('resource_helloapple-copy', sample_resource2), ('mapping_helloapple-copy', sample_mapping2), ('setting_option22', {'name': 'option22', 'value': 'abc'}), - ('repo_https://hydril2.la', {'url': 'https://hydril2.la'}), + ('repo_https://hydril2.la/', {'url': 'https://hydril2.la/'}), + ('repo_https://hydril3.la/', {'url': 'https://hydril3.la/'}), ('blocking_ftp://a.bc/', {'pattern': 'ftp://a.bc/', 'allow': True}) ]: assert json.loads(driver.find_element_by_id(elem_id).text) == json_value -- cgit v1.2.3