panel
panel copied to clipboard
Plotly pane UI tests: plot rendered
Test if plot is rendered when creating a panel.pane.Plotly
object.
We also want to test if the data in Python reflects the actions from the UI. For example, to check if click_data
is updated when clicking on a plot. In order to do so, at least we'll need to know if the position we click contains some data or not. I found the locator.bounding_box()
and page.mouse.click()
quite helpful but haven't been able to do what I want. At the moment, clicking on an arbitrary pixel within a plot's bounding box always returns None.
Codecov Report
Merging #3746 (bdc3384) into master (7550f75) will increase coverage by
0.04%
. The diff coverage is97.80%
.
@@ Coverage Diff @@
## master #3746 +/- ##
==========================================
+ Coverage 82.93% 82.98% +0.04%
==========================================
Files 220 221 +1
Lines 32047 32138 +91
==========================================
+ Hits 26579 26669 +90
- Misses 5468 5469 +1
Flag | Coverage Δ | |
---|---|---|
ui-tests | 34.08% <95.60%> (+0.18%) |
:arrow_up: |
unitexamples-tests | 75.55% <30.76%> (-0.12%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
panel/tests/ui/pane/test_plotly.py | 97.80% <97.80%> (ø) |
|
panel/util.py | 87.54% <0.00%> (+0.37%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more