From 439f07162e41b7d6e29543e11f4edc41b6535a7a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 9 Mar 2024 08:44:06 -0500 Subject: [PATCH] Disable Haiku automation tests until I find a way to automate a browser on Haiku. --- tools/autotest.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/autotest.py b/tools/autotest.py index 27518e41..5f69189f 100755 --- a/tools/autotest.py +++ b/tools/autotest.py @@ -1,16 +1,20 @@ #!/usr/bin/env python3 +import os +import subprocess +import sys +import time + +if sys.platform == 'haiku1': + print('Automation tests are disabled on Haiku.') + exit(0) + from selenium import webdriver from selenium.webdriver.firefox.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.ui import WebDriverWait -import os -import subprocess -import sys -import time - def exists_in_shadow_root(shadow_root, by, value): return lambda driver: shadow_root.find_element(by, value)