aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-02 11:13:48 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-02 11:13:48 +0100
commit830d22d8931a4e5f0606d401f24d7cd937f8697e (patch)
treef5b6e43f4857a511fa03fa331cce693567a031a4 /test/unit
parent26e4800ddf9b4384a083f066f2a396b8e5e6c079 (diff)
downloadbrowser-extension-830d22d8931a4e5f0606d401f24d7cd937f8697e.tar.gz
browser-extension-830d22d8931a4e5f0606d401f24d7cd937f8697e.zip
support Parabola's Iceweasel in tests
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/test_popup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/test_popup.py b/test/unit/test_popup.py
index 3163adb..1fc262c 100644
--- a/test/unit/test_popup.py
+++ b/test/unit/test_popup.py
@@ -235,6 +235,12 @@ def test_popup_repo_query(driver, execute_in_page):
@pytest.mark.ext_data(popup_ext_data)
@pytest.mark.usefixtures('webextension')
+# Under Parabola's Iceweasel 75 the settings page's window opened during this
+# test is impossible to close using driver.close() - it raises an exception with
+# message 'closeTab() not supported in iceweasel'. To avoid such error during
+# test cleanup, we use the mark below to tell our driver fixture to span a
+# separate browser instance for this test.
+@pytest.mark.second_driver()
def test_popup_settings_opening(driver, execute_in_page):
"""
Test opening the settings page from popup through button click.