diff options
author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2024-01-05 15:22:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-07 22:59:55 +0000 |
commit | 1cd56989a08d79bab88022cd1319debefa9fc289 (patch) | |
tree | a7ee2832f58da6001d6ebbbe36fc0116c8ffc952 | |
parent | 74c234bf0db65c6384c76e0a30403b411778ac79 (diff) | |
download | poky-1cd56989a08d79bab88022cd1319debefa9fc289.tar.gz |
bitbake: toaster/tests: Bug-fix element click intercepted
Fix "element click intercepted" on TestProjectConfigTab::test_project_config_tab_right_section
(Bitbake rev: c8685c762aa1fab687ff3a0943487675ef720755)
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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') |