From 31ca4cc0f22a715ec4fe3f4d2029274aebdda3cf Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 26 Mar 2026 19:42:41 +0100 Subject: [PATCH] WIP --- .../tests/fetchers/test_custom_js_before_content.py | 1 - changedetectionio/tests/proxy_list/test_noproxy.py | 1 - changedetectionio/tests/test_add_replace_remove_filter.py | 2 -- changedetectionio/tests/test_auth.py | 2 +- changedetectionio/tests/test_block_while_text_present.py | 1 - changedetectionio/tests/test_browser_profile_status_icon.py | 4 ++-- changedetectionio/tests/test_conditions.py | 2 -- changedetectionio/tests/visualselector/test_fetch_data.py | 2 +- 8 files changed, 4 insertions(+), 11 deletions(-) diff --git a/changedetectionio/tests/fetchers/test_custom_js_before_content.py b/changedetectionio/tests/fetchers/test_custom_js_before_content.py index db16b68da..e4a4cbd50 100644 --- a/changedetectionio/tests/fetchers/test_custom_js_before_content.py +++ b/changedetectionio/tests/fetchers/test_custom_js_before_content.py @@ -25,7 +25,6 @@ def test_execute_custom_js(client, live_server, measure_memory_usage, datastore_ data={ "url": test_url, "tags": "", - 'browser_profile': "browser_chromeplaywright", 'webdriver_js_execute_code': 'document.querySelector("button[name=test-button]").click();', 'headers': "testheader: yes\buser-agent: MyCustomAgent", "time_between_check_use_default": "y", diff --git a/changedetectionio/tests/proxy_list/test_noproxy.py b/changedetectionio/tests/proxy_list/test_noproxy.py index 194cc46fd..db243a85a 100644 --- a/changedetectionio/tests/proxy_list/test_noproxy.py +++ b/changedetectionio/tests/proxy_list/test_noproxy.py @@ -56,7 +56,6 @@ def test_noproxy_option(client, live_server, measure_memory_usage, datastore_pat url_for("ui.ui_edit.edit_page", uuid=uuid, unpause_on_save=1), data={ "include_filters": "", - "browser_profile": "direct_http_requests", "headers": "", "proxy": "no-proxy", "tags": "", diff --git a/changedetectionio/tests/test_add_replace_remove_filter.py b/changedetectionio/tests/test_add_replace_remove_filter.py index e0579fd27..d66bb8687 100644 --- a/changedetectionio/tests/test_add_replace_remove_filter.py +++ b/changedetectionio/tests/test_add_replace_remove_filter.py @@ -60,7 +60,6 @@ def test_check_removed_line_contains_trigger(client, live_server, measure_memory url_for("ui.ui_edit.edit_page", uuid="first"), data={"trigger_text": 'The golden line', "url": test_url, - 'browser_profile': "direct_http_requests", 'filter_text_removed': 'y', "time_between_check_use_default": "y"}, follow_redirects=True @@ -148,7 +147,6 @@ def test_check_add_line_contains_trigger(client, live_server, measure_memory_usa data={"trigger_text": 'Oh yes please', "url": test_url, 'processor': 'text_json_diff', - 'browser_profile': "direct_http_requests", 'filter_text_removed': '', 'filter_text_added': 'y', "time_between_check_use_default": "y"}, diff --git a/changedetectionio/tests/test_auth.py b/changedetectionio/tests/test_auth.py index bef11ed74..b133d8c4c 100644 --- a/changedetectionio/tests/test_auth.py +++ b/changedetectionio/tests/test_auth.py @@ -19,7 +19,7 @@ def test_basic_auth(client, live_server, measure_memory_usage, datastore_path): # Check form validation res = client.post( url_for("ui.ui_edit.edit_page", uuid="first"), - data={"include_filters": "", "url": test_url, "tags": "", "headers": "", 'browser_profile': "direct_http_requests", "time_between_check_use_default": "y"}, + data={"include_filters": "", "url": test_url, "tags": "", "headers": "", "time_between_check_use_default": "y"}, follow_redirects=True ) assert b"Updated watch." in res.data diff --git a/changedetectionio/tests/test_block_while_text_present.py b/changedetectionio/tests/test_block_while_text_present.py index 7b65bc7ac..acef60dce 100644 --- a/changedetectionio/tests/test_block_while_text_present.py +++ b/changedetectionio/tests/test_block_while_text_present.py @@ -83,7 +83,6 @@ def test_check_block_changedetection_text_NOT_present(client, live_server, measu url_for("ui.ui_edit.edit_page", uuid=uuid), data={"text_should_not_be_present": ignore_text, "url": test_url, - 'browser_profile': "direct_http_requests", "time_between_check_use_default": "y" }, follow_redirects=True diff --git a/changedetectionio/tests/test_browser_profile_status_icon.py b/changedetectionio/tests/test_browser_profile_status_icon.py index 52f9d6758..d7321b78d 100644 --- a/changedetectionio/tests/test_browser_profile_status_icon.py +++ b/changedetectionio/tests/test_browser_profile_status_icon.py @@ -77,7 +77,7 @@ def test_chrome_icon_shown_for_browser_profile(client, live_server, measure_memo datastore = client.application.config.get('DATASTORE') set_system_default_profile(client, 'direct_http_requests') - uuid = datastore.add_watch(url='http://example.com', extras={'browser_profile': 'browser_chromeplaywright', 'paused': True}) + uuid = datastore.add_watch(url='http://example.com', extras={ 'paused': True}) res = client.get(url_for('watchlist.index'), follow_redirects=True) assert b'Using a Chrome browser' in res.data, \ "Chrome icon should appear when watch is set to browser_chromeplaywright" @@ -89,7 +89,7 @@ def test_no_icon_for_requests_profile(client, live_server, measure_memory_usage, datastore = client.application.config.get('DATASTORE') set_system_default_profile(client, 'direct_http_requests') - uuid = datastore.add_watch(url='http://example.com', extras={'browser_profile': 'direct_http_requests', 'paused': True}) + uuid = datastore.add_watch(url='http://example.com', extras={'paused': True}) res = client.get(url_for('watchlist.index'), follow_redirects=True) assert b'Using a Chrome browser' not in res.data, \ "Chrome icon should NOT appear when watch is set to direct_http_requests" diff --git a/changedetectionio/tests/test_conditions.py b/changedetectionio/tests/test_conditions.py index fff04a7f4..ce5890873 100644 --- a/changedetectionio/tests/test_conditions.py +++ b/changedetectionio/tests/test_conditions.py @@ -72,7 +72,6 @@ def test_conditions_with_text_and_number(client, live_server, measure_memory_usa url_for("ui.ui_edit.edit_page", uuid=uuid), data={ "url": test_url, - "browser_profile": "direct_http_requests", "include_filters": ".number-container", "title": "Number AND Text Condition Test", "conditions_match_logic": CONDITIONS_MATCH_LOGIC_DEFAULT, # ALL = AND logic @@ -258,7 +257,6 @@ def test_lev_conditions_plugin(client, live_server, measure_memory_usage, datast url_for("ui.ui_edit.edit_page", uuid=uuid, unpause_on_save=1), data={ "url": test_url, - "browser_profile": "direct_http_requests", "conditions_match_logic": CONDITIONS_MATCH_LOGIC_DEFAULT, # ALL = AND logic "conditions-0-field": "levenshtein_ratio", "conditions-0-operator": "<", diff --git a/changedetectionio/tests/visualselector/test_fetch_data.py b/changedetectionio/tests/visualselector/test_fetch_data.py index 215ba864c..c740c03e8 100644 --- a/changedetectionio/tests/visualselector/test_fetch_data.py +++ b/changedetectionio/tests/visualselector/test_fetch_data.py @@ -203,7 +203,7 @@ def test_browsersteps_edit_UI_startsession(client, live_server, measure_memory_u test_url = test_url.replace('localhost.localdomain', 'cdio') test_url = test_url.replace('localhost', 'cdio') - uuid = client.application.config.get('DATASTORE').add_watch(url=test_url, extras={'browser_profile': 'browser_chromeplaywright', 'paused': True}) + uuid = client.application.config.get('DATASTORE').add_watch(url=test_url, extras={'paused': True}) # Test starting a browsersteps session res = client.get(