diff options
author | zsloan | 2022-09-19 17:05:16 +0000 |
---|---|---|
committer | zsloan | 2022-09-19 17:06:30 +0000 |
commit | ce07180fbc07fbf61d4dc26bf5d20cdf6f7df91f (patch) | |
tree | 09e4a7535f9f0be07f676497cc873345994b6e92 | |
parent | 20025f23959f8c094c52fe03c87211947c8fe888 (diff) | |
download | genenetwork2-ce07180fbc07fbf61d4dc26bf5d20cdf6f7df91f.tar.gz |
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.
-rw-r--r-- | test/requests/main_web_functionality.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |