code: def test_dataframe_toolbar_on_hover(
      themed_app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that the toolbar is shown when hovering over a dataframe."""
      dataframe_element = themed_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
      dataframe_element.hover()
  
      # Check that it is visible
      expect(dataframe_toolbar).to_have_css("opacity", "1")
  
      # Take a snapshot
      assert_snapshot(dataframe_toolbar, name="st_dataframe-toolbar")
  
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 1 for calling a global function with example usage: test_dataframe_toolbar_on_hover(themed_app, assert_snapshot) without return types