From efd5d79dde3159c0fe2bd75b1d4bbf4520e23fdd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 22 Oct 2023 13:44:37 +0300 Subject: [PATCH] make sure we fail properly --- tests/integration/selenium_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index 9df1cc099..f1abace56 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -1,8 +1,8 @@ #!/usr/bin/python3 import os +import sys import traceback -import time from selenium import webdriver from selenium.webdriver.common.by import By @@ -32,11 +32,13 @@ try: print("checking for feedTree...") - assert driver.find_element(by=By.CSS_SELECTOR, value="#zfeedTree") + assert driver.find_element(by=By.CSS_SELECTOR, value="#feedTree") print("all done.") except Exception: traceback.print_exc() + sys.exit(1) finally: driver.quit() +