From bbd6e29b657333eb9350317edad4c865720b5b37 Mon Sep 17 00:00:00 2001 From: Ali Abid Date: Wed, 1 Sep 2021 22:21:32 +0000 Subject: [PATCH] fix tests --- test/test_demos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_demos.py b/test/test_demos.py index 0068d26772..91aded776b 100644 --- a/test/test_demos.py +++ b/test/test_demos.py @@ -97,7 +97,7 @@ class TestDemo(unittest.TestCase): elem.click() elem = WebDriverWait(driver, TIMEOUT).until( EC.presence_of_element_located((By.CSS_SELECTOR, - ".panel:nth-child(2) .component:nth-child(1) .output_text")) + ".panel:nth-child(2) .component:nth-child(2) .output_text")) ) total_sleep = 0 @@ -136,7 +136,7 @@ class TestDemo(unittest.TestCase): elem.click() WebDriverWait(driver, TIMEOUT).until( EC.visibility_of_element_located( - (By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(1) .output_image")) + (By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(2) .output_image")) ) time.sleep(GAP_TO_SCREENSHOT) @@ -159,7 +159,7 @@ class TestDemo(unittest.TestCase): ) elem.click() elem = WebDriverWait(driver, TIMEOUT).until( - EC.presence_of_element_located((By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(1) .output_class")) + EC.presence_of_element_located((By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(2) .output_class")) ) total_sleep = 0 @@ -185,7 +185,7 @@ class TestDemo(unittest.TestCase): ) elem.click() elem = WebDriverWait(driver, TIMEOUT).until( - EC.presence_of_element_located((By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(1) .output_text")) + EC.presence_of_element_located((By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(2) .output_text")) ) total_sleep = 0