From 4105f61fc46e8face0863a55338688718297f5da Mon Sep 17 00:00:00 2001 From: Jan Jasek Date: Thu, 14 Nov 2024 19:16:50 +0100 Subject: [PATCH] pytest-based tests add fix tooltip obscures In some unspecified cases tooltip in instances tab obscures button for instance filtration Change-Id: I22beb974914b66c702051026bd93db6012321401 --- .../test/selenium/integration/test_instances.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openstack_dashboard/test/selenium/integration/test_instances.py b/openstack_dashboard/test/selenium/integration/test_instances.py index b4646b0229..8b2d6a568b 100644 --- a/openstack_dashboard/test/selenium/integration/test_instances.py +++ b/openstack_dashboard/test/selenium/integration/test_instances.py @@ -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