diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-15 14:22:09 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-15 14:22:09 +0100 |
commit | 5ed09841865eb0c309f1501c6de15fc454478db7 (patch) | |
tree | 256c04d3680245a3a1e67ceedda30339568eeddb /test/unit/test_indexeddb.py | |
parent | 92fc67cfa135526cef75311c3ee1a14e248c3060 (diff) | |
download | browser-extension-5ed09841865eb0c309f1501c6de15fc454478db7.tar.gz browser-extension-5ed09841865eb0c309f1501c6de15fc454478db7.zip |
fix loading initial data and verify it in automated tests
Diffstat (limited to 'test/unit/test_indexeddb.py')
-rw-r--r-- | test/unit/test_indexeddb.py | 10 |
1 files changed, 7 insertions, 3 deletions
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 |