diff options
Diffstat (limited to 'test/haketilo_test/test_integration.py')
-rw-r--r-- | test/haketilo_test/test_integration.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/haketilo_test/test_integration.py b/test/haketilo_test/test_integration.py index 87d1827..b77afbd 100644 --- a/test/haketilo_test/test_integration.py +++ b/test/haketilo_test/test_integration.py @@ -19,6 +19,10 @@ Haketilo integration tests import pytest +from selenium.webdriver.support.ui import WebDriverWait +from selenium.webdriver.support import expected_conditions as EC +from selenium.webdriver.common.by import By + from .extension_crafting import get_extension_base_url @pytest.mark.usefixtures('haketilo') @@ -30,6 +34,9 @@ def test_integration(driver): base_url = get_extension_base_url(driver) driver.get(base_url + 'html/settings.html') + WebDriverWait(driver, 10)\ + .until(EC.visibility_of_element_located((By.ID, "main_view"))) + for tab_head_id, item_text in [ ('resources_head', 'Haketilo demonstrational script'), ('mappings_head', 'Haketilo demonstrational message'), |