From 58fe4c7d806359bed299f74ba56902ab396a6ed1 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 14 Dec 2021 21:40:23 +0100 Subject: facilitate broadcasting messages to different execution contexts within the webextension --- test/unit/test_basic.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/unit/test_basic.py') 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 -- cgit v1.2.3