diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-12-14 21:40:23 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-12-14 22:06:58 +0100 |
commit | 58fe4c7d806359bed299f74ba56902ab396a6ed1 (patch) | |
tree | 38cc0620fe36c5bd7ef7df7dd9f24d332a51fdee /test/unit/test_basic.py | |
parent | 79446ca52cea0864ebe2540ba774cc386ee2f8bc (diff) | |
download | browser-extension-58fe4c7d806359bed299f74ba56902ab396a6ed1.tar.gz browser-extension-58fe4c7d806359bed299f74ba56902ab396a6ed1.zip |
facilitate broadcasting messages to different execution contexts within the webextension
Diffstat (limited to 'test/unit/test_basic.py')
-rw-r--r-- | test/unit/test_basic.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/test_basic.py b/test/unit/test_basic.py index 3b09cb6..ca956e7 100644 --- a/test/unit/test_basic.py +++ b/test/unit/test_basic.py @@ -31,18 +31,19 @@ def test_driver(driver): ) assert "Schrodinger's Document" in title +@pytest.mark.get_page('https://gotmyowndoma.in') def test_script_loader(execute_in_page, load_into_page): """ A trivial test case that verifies Haketilo's .js files can be properly loaded into a test page together with their dependencies. """ - load_into_page('common/stored_types.js', ['common'], - page='https://gotmyowndoma.in') + load_into_page('common/stored_types.js', ['common']) assert execute_in_page('returnval(TYPE_PREFIX.VAR);') == '_' @pytest.mark.ext_data({}) -def test_webextension(driver, webextension): +@pytest.mark.usefixtures('webextension') +def test_webextension(driver): """ A trivial test case that verifies a test WebExtension created and installed by the `webextension` fixture works and redirects specially-constructed URLs |