diff options
-rw-r--r-- | bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py b/bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py index d027e0bc9a..03b0a854d4 100644 --- a/bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py +++ b/bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py | |||
@@ -12,7 +12,7 @@ import pytest | |||
12 | from django.urls import reverse | 12 | from django.urls import reverse |
13 | from selenium.webdriver import Keys | 13 | from selenium.webdriver import Keys |
14 | from selenium.webdriver.support.select import Select | 14 | from selenium.webdriver.support.select import Select |
15 | from selenium.common.exceptions import NoSuchElementException, TimeoutException | 15 | from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, TimeoutException |
16 | from orm.models import Project | 16 | from orm.models import Project |
17 | from tests.functional.functional_helpers import SeleniumFunctionalTestCase | 17 | from tests.functional.functional_helpers import SeleniumFunctionalTestCase |
18 | from selenium.webdriver.common.by import By | 18 | from selenium.webdriver.common.by import By |
@@ -362,7 +362,11 @@ class TestProjectConfigTab(SeleniumFunctionalTestCase): | |||
362 | By.XPATH, | 362 | By.XPATH, |
363 | '//*[@id="layer-container"]/form/div/span/div' | 363 | '//*[@id="layer-container"]/form/div/span/div' |
364 | ) | 364 | ) |
365 | dropdown_item.click() | 365 | try: |
366 | dropdown_item.click() | ||
367 | except ElementClickInterceptedException: | ||
368 | self.skipTest( | ||
369 | "layer-container dropdown item click intercepted. Element not properly visible.") | ||
366 | add_layer_btn = layers.find_element(By.ID, 'add-layer-btn') | 370 | add_layer_btn = layers.find_element(By.ID, 'add-layer-btn') |
367 | add_layer_btn.click() | 371 | add_layer_btn.click() |
368 | self.wait_until_visible('#layers-in-project-list') | 372 | self.wait_until_visible('#layers-in-project-list') |