Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 14, 2024
1 parent db79ed0 commit cc6fa61
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions holoviews/tests/ui/bokeh/test_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,24 @@ def popup_form(name):
expect(locator).to_have_count(1)


@skip_popup
@pytest.mark.usefixtures("bokeh_backend")
def test_stream_popup_polygons(serve_hv):
def popup_form(name):
return f"# {name}"

points = hv.Polygons([np.random.randn(10, 2)]).opts(tools=["tap"])
hv.streams.Tap(source=points, popup=popup_form("Tap"))

page = serve_hv(points)
hv_plot = page.locator('.bk-events')
hv_plot.click()
expect(hv_plot).to_have_count(1)

locator = page.locator("#tap")
expect(locator).to_have_count(1)


@skip_popup
@pytest.mark.usefixtures("bokeh_backend")
def test_stream_popup_none(serve_hv, points):
Expand Down

0 comments on commit cc6fa61

Please sign in to comment.