Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To run these tests locally, just make sure you have dash installed for testing - you can run
pip install -r tests/requirements.txt- then justpytestto run all the tests, orpytest -k cd001will just run the one test withcd001in its function name.pytest -k cd001 --pausewill run that same single test, but drop intopdbright after opening the browser window, so you can debug the test both in python (na few times and you'll be in the test code) and in the browser (open the js console and do whatever you like)I added two example tests - one showing dragging & pinning columns and verifying that they're drawn as expected after, another filtering from the ui. I didn't add any tests with dash callbacks, but those work the same way. Both tests use the
utils.Gridclass to centralize all the ag-grid-specific selectors.