code: def test_dataframe_toolbar_on_toolbar_hover(app: Page):
      """Test that the toolbar is shown when hovering over the toolbar."""
      dataframe_element = app.get_by_test_id("stDataFrame").nth(0)
      dataframe_toolbar = dataframe_element.get_by_test_id(
          "stElementToolbar"
      )
  
      # Check that it is currently not visible:
      expect(dataframe_toolbar).to_have_css("opacity", "0")
  
      # Hover over dataframe toolbar itself (which is position)
      dataframe_toolbar.hover(force=True, position={"x": 0, "y": 0})
  
      # Check that it is visible
      expect(dataframe_toolbar).to_have_css("opacity", "1")
  
file_path: streamlit/e2e_playwright/st_dataframe_interactions_test.py
imports: import pytest
  from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 7 for calling a global function with example usage: test_dataframe_toolbar_on_toolbar_hover(app) without return types