Revision 587c1a88
Added by koszko over 1 year ago
test/haketilo_test/test_integration.py | ||
---|---|---|
19 | 19 |
|
20 | 20 |
import pytest |
21 | 21 |
|
22 |
from selenium.webdriver.support.ui import WebDriverWait |
|
23 |
from selenium.webdriver.support import expected_conditions as EC |
|
24 |
from selenium.webdriver.common.by import By |
|
25 |
|
|
22 | 26 |
from .extension_crafting import get_extension_base_url |
23 | 27 |
|
24 | 28 |
@pytest.mark.usefixtures('haketilo') |
... | ... | |
30 | 34 |
base_url = get_extension_base_url(driver) |
31 | 35 |
driver.get(base_url + 'html/settings.html') |
32 | 36 |
|
37 |
WebDriverWait(driver, 10)\ |
|
38 |
.until(EC.visibility_of_element_located((By.ID, "main_view"))) |
|
39 |
|
|
33 | 40 |
for tab_head_id, item_text in [ |
34 | 41 |
('resources_head', 'Haketilo demonstrational script'), |
35 | 42 |
('mappings_head', 'Haketilo demonstrational message'), |
Also available in: Unified diff
display an informative message in settings page if IndexedDB cannot be accessed