code: def test_tap_triggers_callback(
      self, single_plot_page: SinglePlotPage
  ) -> None:
      plot = figure(height=800, width=1000, tools="")
      plot.rect(x=[1, 2], y=[1, 1], width=1, height=1)
      plot.add_tools(
          CustomAction(
              icon=".bk-tool-icon-custom-action",
              callback=CustomJS(code=RECORD("activated", "true")),
          )
      )
  
      page = single_plot_page(plot)
  
      [button] = page.get_toolbar_buttons(plot)
      button.click()
      assert page.results["activated"] is True
  
      assert page.has_no_console_errors()
  
file_path: bokeh/tests/integration/tools/test_custom_action.py
imports: from __future__ import annotations
  import pytest
  from bokeh.models import CustomAction, CustomJS
  from bokeh.plotting import figure
  from tests.support.plugins.project import SinglePlotPage
  from tests.support.util.selenium import RECORD
label_desc: Use image node_id 1 for calling the Test_CustomAction obj's underlying member method code with example usage: obj.test_tap_triggers_callback(single_plot_page) without return types