You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote some testing utils on top of selenium to do things like "wait for an element to appear". they're kind of hacky and sometimes they seem unreliable. So, sometimes we end up putting time.sleep in our tests instead of some proper wait for statement.
Turns out that selenium has its own "wait for" methods. We should replace our utils with these new methods and start using these methods in our new tests.
I wrote some testing utils on top of selenium to do things like "wait for an element to appear". they're kind of hacky and sometimes they seem unreliable. So, sometimes we end up putting
time.sleepin our tests instead of some proper wait for statement.Turns out that selenium has its own "wait for" methods. We should replace our utils with these new methods and start using these methods in our new tests.
Here is an example of the official selenium "wait" API:
https://github.com/plotly/dash-component-boilerplate/blob/1d2ee1d9fc1b6fa834fda3dc38064297f8154085/tests/test_render.py#L4-L23
cc @plotly/dash