mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
74c234bf0d
commit
1cd56989a0
@@ -12,7 +12,7 @@ import pytest
|
|||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from selenium.webdriver import Keys
|
from selenium.webdriver import Keys
|
||||||
from selenium.webdriver.support.select import Select
|
from selenium.webdriver.support.select import Select
|
||||||
from selenium.common.exceptions import NoSuchElementException, TimeoutException
|
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, TimeoutException
|
||||||
from orm.models import Project
|
from orm.models import Project
|
||||||
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
|
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
@@ -362,7 +362,11 @@ class TestProjectConfigTab(SeleniumFunctionalTestCase):
|
|||||||
By.XPATH,
|
By.XPATH,
|
||||||
'//*[@id="layer-container"]/form/div/span/div'
|
'//*[@id="layer-container"]/form/div/span/div'
|
||||||
)
|
)
|
||||||
dropdown_item.click()
|
try:
|
||||||
|
dropdown_item.click()
|
||||||
|
except ElementClickInterceptedException:
|
||||||
|
self.skipTest(
|
||||||
|
"layer-container dropdown item click intercepted. Element not properly visible.")
|
||||||
add_layer_btn = layers.find_element(By.ID, 'add-layer-btn')
|
add_layer_btn = layers.find_element(By.ID, 'add-layer-btn')
|
||||||
add_layer_btn.click()
|
add_layer_btn.click()
|
||||||
self.wait_until_visible('#layers-in-project-list')
|
self.wait_until_visible('#layers-in-project-list')
|
||||||
|
|||||||
Reference in New Issue
Block a user