Revision 5ed09841
Added by koszko over 1 year ago
test/unit/test_indexeddb.py | ||
---|---|---|
429 | 429 |
}, |
430 | 430 |
'file': { |
431 | 431 |
'sha256': sample_files_by_sha256 |
432 |
} |
|
432 |
}, |
|
433 |
'repo': [ |
|
434 |
'https://hydril2.la/' |
|
435 |
] |
|
433 | 436 |
} |
434 | 437 |
execute_in_page('returnval(save_items(arguments[0]));', sample_data) |
435 | 438 |
execute_in_page('returnval(set_setting("option22", "abc"));') |
436 |
execute_in_page('returnval(set_repo("https://hydril2.la"));')
|
|
439 |
execute_in_page('returnval(set_repo("https://hydril3.la/"));')
|
|
437 | 440 |
execute_in_page('returnval(set_allowed("ftp://a.bc/"));') |
438 | 441 |
|
439 | 442 |
driver.switch_to.window(windows[0]) |
... | ... | |
442 | 445 |
('resource_helloapple-copy', sample_resource2), |
443 | 446 |
('mapping_helloapple-copy', sample_mapping2), |
444 | 447 |
('setting_option22', {'name': 'option22', 'value': 'abc'}), |
445 |
('repo_https://hydril2.la', {'url': 'https://hydril2.la'}), |
|
448 |
('repo_https://hydril2.la/', {'url': 'https://hydril2.la/'}), |
|
449 |
('repo_https://hydril3.la/', {'url': 'https://hydril3.la/'}), |
|
446 | 450 |
('blocking_ftp://a.bc/', {'pattern': 'ftp://a.bc/', 'allow': True}) |
447 | 451 |
]: |
448 | 452 |
assert json.loads(driver.find_element_by_id(elem_id).text) == json_value |
Also available in: Unified diff
fix loading initial data and verify it in automated tests