mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
fix tests
This commit is contained in:
parent
ae3a7320e5
commit
bbd6e29b65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user