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

Fix Tabs and Tabs tests #306

Merged
merged 6 commits into from
Sep 21, 2018
Merged

Fix Tabs and Tabs tests #306

merged 6 commits into from
Sep 21, 2018

Conversation

valentijnnieman
Copy link
Contributor

Looks like I made a mistake when merging in master in previous PR #279 , and the fix wasn't included (clone(figure.layout)). I've put it back in, as well as removed the console.log, so this closes #300 too. Apologies, I won't merge & publish when I have a fever and should've been in bed anymore!

@valentijnnieman valentijnnieman changed the title Hotfix tabs Fix Tabs and Tabs tests Sep 18, 2018
@@ -629,6 +638,11 @@ def render_content(tab):
self.snapshot("Tabs with Graph - initial (graph should not resize)")
tab_two.click()

# wait for content to be loaded after clicking
WebDriverWait(self.driver, 10).until(
EC.visibility_of_element_located((By.ID, "tabs-content-example"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should you be looking for data that's actually inside the tab rather than the tab container itself? We might even want to wait for the graph to be rendered. i.e. something like #graph--tabs .svg-container. Similarly below when you switch tabs (#graph-2-tabs .svg-container`)

Copy link
Member

@chriddyp chriddyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

console.log in dcc.Tabs
2 participants