diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-01-13 16:47:07 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-01-13 16:47:07 +0100 |
commit | 299864ee0901df8db2314cc7c07d6c481927c8aa (patch) | |
tree | dcd1056c39fa6e90214cb2296e70f1060ad9583a /test/unit/test_payload_create.py | |
parent | 5acb2499c1df14d6275b1ad9e139f02d1280cb9c (diff) | |
download | browser-extension-299864ee0901df8db2314cc7c07d6c481927c8aa.tar.gz browser-extension-299864ee0901df8db2314cc7c07d6c481927c8aa.zip |
facilitate managing script blocking with a list of edtable entries
Diffstat (limited to 'test/unit/test_payload_create.py')
-rw-r--r-- | test/unit/test_payload_create.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/test_payload_create.py b/test/unit/test_payload_create.py index 569d088..f07083d 100644 --- a/test/unit/test_payload_create.py +++ b/test/unit/test_payload_create.py @@ -93,7 +93,7 @@ def test_payload_create_normal_usage(driver, execute_in_page): form_ctx.dialog_container]); ''') - assert doc_url == \ + assert patterns_doc_url == \ driver.find_element_by_link_text('URL patterns').get_attribute('href') assert form_container.is_displayed() @@ -176,8 +176,6 @@ def test_payload_create_normal_usage(driver, execute_in_page): assert_db_contents() -doc_url = 'https://hydrillabugs.koszko.org/projects/haketilo/wiki/URL_patterns' - @pytest.mark.ext_data({ 'background_script': broker_js, 'extra_html': ExtraHTML('html/payload_create.html', {}), @@ -215,7 +213,7 @@ def test_payload_create_errors(driver, execute_in_page): # Verify patterns documentation <a> link. if expected_msg == {'patterns': ':d'}: doc_link_elem = driver.find_element_by_link_text('here') - assert doc_link.get_attribute('href') == doc_url + assert doc_link.get_attribute('href') == patterns_doc_url # Verify the form was NOT cleared upon failed saving. execute_in_page('form_ctx.dialog_ctx.ok_but.click();') |