Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 0340062

Browse files
Wait for tab to be clickable in test
1 parent 3115f21 commit 0340062

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ def render_content(tab):
522522
tab_two = self.wait_for_element_by_css_selector('#tab-2')
523523

524524
WebDriverWait(self.driver, 10).until(
525-
EC.element_to_be_clickable((By.ID, "tab-1")),
526525
EC.element_to_be_clickable((By.ID, "tab-2"))
527526
)
528527

@@ -532,6 +531,10 @@ def render_content(tab):
532531

533532
self.snapshot("Tabs with Graph - clicked tab 2 (graph should not resize)")
534533

534+
WebDriverWait(self.driver, 10).until(
535+
EC.element_to_be_clickable((By.ID, "tab-1"))
536+
)
537+
535538
tab_one.click()
536539

537540
self.snapshot("Tabs with Graph - clicked tab 1 (graph should not resize)")

0 commit comments

Comments
 (0)