Commit 954f0271 authored by Watchtek's avatar Watchtek
Browse files

Merge branch 'dev' into 'main'

Revert "Check child topology existed"

See merge request !6
parents c656b614 9e4df482
Loading
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -245,21 +245,15 @@ class MultipleTest(unittest.TestCase):

    def _topology_map_actions(self, driver):
        """Performs actions on the Topology Map."""
        wait = WebDriverWait(driver, 3)
        time.sleep(0.5)
        driver.find_element(By.XPATH, "//div[@id='wrapper']/nav/ul/li[2]/a/div").click()
        self._take_screenshot(driver, "topology_map_menu_click")
        driver.find_element(By.XPATH, "//div[@id='wrapper']/div/div/aside/div/div/div/article/div/div/div/div/div/div/span[2]/span/span[2]").click()
        time.sleep(1.5)
        self._take_screenshot(driver, "topology_first_parent_click")
        try:
            wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@id='wrapper']/div/div/aside/div/div/div/article/div/div/div/div/div/div[2]/div/div/span[2]/span/span[2]"))).click()
            time.sleep(1.5)
            self._take_screenshot(driver, "topology_first_child_click")
        except (TimeoutException, NoSuchElementException):
            wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@id='wrapper']/div/div/aside/div/div/div/article/div/div/div/div/div[2]/div/span[2]/span/span[2]"))).click()
            time.sleep(1.5)
            self._take_screenshot(driver, "topology_other_parent_click")
        driver.find_element(By.XPATH, "//div[@id='wrapper']/div/div/aside/div/div/div/article/div/div/div/div/div/div[2]/div/div/span[2]/span/span[2]").click()
        self._take_screenshot(driver, "topology_first_element_click")
        driver.find_element(By.XPATH, "//div[@id='wrapper']/div/div/aside/div/div/div/article/div/div/div/div/div/div[2]/div/div[2]/div/div/span[2]/span/span[2]").click()
        self._take_screenshot(driver, "topology_second_element_click")
        driver.find_element(By.XPATH, "//div[@id='wrapper']/div/div/aside/div/div/div/article/div/div/div/div/div/div[2]/div/div[2]/div/div[2]/div/div/span[2]/span/span[2]").click()
        self._take_screenshot(driver, "topology_third_element_click")

    def _performance_operation_actions(self, driver):
        """Performs actions on Performance/Operation."""