From ce07180fbc07fbf61d4dc26bf5d20cdf6f7df91f Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 19 Sep 2022 17:05:16 +0000 Subject: Fix broken test Because the input element was changed to a button element there was no longer a "value" attribute. I'm not sure what this assert is for, though; I changed it to just check for "Search" in the inner text, which makes it pass. --- test/requests/main_web_functionality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/requests/main_web_functionality.py b/test/requests/main_web_functionality.py index 79f37bb4..40336f47 100644 --- a/test/requests/main_web_functionality.py +++ b/test/requests/main_web_functionality.py @@ -7,7 +7,7 @@ def check_home(url): results = requests.get(url) doc = document_fromstring(results.text) search_button = doc.cssselect("#btsearch") - assert(search_button[0].value == "Search") + assert("Search" in ''.join(search_button[0].text_content())) print("OK") def check_search_page(host): -- cgit v1.2.3