pytest-based tests add fix tooltip obscures

In some unspecified cases tooltip in instances tab obscures
button for instance filtration

Change-Id: I22beb974914b66c702051026bd93db6012321401
This commit is contained in:
Jan Jasek 2024-11-14 19:16:50 +01:00
parent 0763ff9f5b
commit 4105f61fc4

View File

@ -14,6 +14,7 @@ import time
import pytest
from selenium.common import exceptions
from selenium.webdriver.common.action_chains import ActionChains as AC
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
@ -342,6 +343,8 @@ def test_instances_pagination_and_filtration_demo(login, driver, instance_name,
'instances'
))
driver.get(url)
h1 = driver.find_element_by_css_selector("h1")
AC(driver).move_to_element(h1).perform()
driver.find_element_by_css_selector(
"button[class='btn btn-default dropdown-toggle']").click()
# set filter by instance_name
@ -396,6 +399,8 @@ def test_filter_instances_demo(login, driver, instance_name,
'instances'
))
driver.get(url)
h1 = driver.find_element_by_css_selector("h1")
AC(driver).move_to_element(h1).perform()
driver.find_element_by_css_selector(
"button[class='btn btn-default dropdown-toggle']").click()
# set filter by instance_name
@ -589,6 +594,8 @@ def test_instances_pagination_and_filtration_admin(login, driver, instance_name,
'instances'
))
driver.get(url)
h1 = driver.find_element_by_css_selector("h1")
AC(driver).move_to_element(h1).perform()
driver.find_element_by_css_selector(
"button[class='btn btn-default dropdown-toggle']").click()
# set filter by instance_name
@ -643,6 +650,8 @@ def test_filter_instances_admin(login, driver, instance_name,
'instances'
))
driver.get(url)
h1 = driver.find_element_by_css_selector("h1")
AC(driver).move_to_element(h1).perform()
driver.find_element_by_css_selector(
"button[class='btn btn-default dropdown-toggle']").click()
# set filter by instance_name