Hello,
Has somebody ever used a framework for automated GUI testing like Splinter (https://splinter.readthedocs.io/en/latest/) with Dash?
If so, any best practices?
Best
Hello,
Has somebody ever used a framework for automated GUI testing like Splinter (https://splinter.readthedocs.io/en/latest/) with Dash?
If so, any best practices?
Best
Yes - I use selenium
in the integration tests for Dash. Here are some examples:
dash-auth
: https://github.com/plotly/dash-auth/blob/b7567697b9e3460501156b2552efa1afad89d7a6/tests/test_integration.py
circle.yml
file for running these tests on CircleCI: https://github.com/plotly/dash-auth/blob/b7567697b9e3460501156b2552efa1afad89d7a6/circle.yml and it’s associated tox
file: https://github.com/plotly/dash-auth/blob/b7567697b9e3460501156b2552efa1afad89d7a6/tox.ini. These tests run across multiple versions of pythonutils.py
function, there are some helpful utilities like wait_for
: https://github.com/plotly/dash-auth/blob/b7567697b9e3460501156b2552efa1afad89d7a6/tests/utils.py#L39-L79, which can be used to wait for elements to render: https://github.com/plotly/dash-auth/blob/b7567697b9e3460501156b2552efa1afad89d7a6/tests/test_integration.py#L61
I hope that helps!
Thanks for this great and useful answer!