code: def test_clicking_on_fullscreen_toolbar_button(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that clicking on fullscreen toolbar button expands the dataframe into fullscreen."""
  
      dataframe_element = app.get_by_test_id("stDataFrame").nth(0)
      dataframe_toolbar = dataframe_element.get_by_test_id(
          "stElementToolbar"
      )
      fullscreen_wrapper = app.get_by_test_id("stFullScreenFrame").nth(
          0
      )
  
      fullscreen_toolbar_button = dataframe_toolbar.get_by_test_id(
          "stElementToolbarButton"
      ).nth(2)
  
      # Activate toolbar:
      dataframe_element.hover()
      # Check that it is visible
      expect(dataframe_toolbar).to_have_css("opacity", "1")
  
      # Click on expand to fullscreen button:
      fullscreen_toolbar_button.click()
  
      # Check that it is visible
      assert_snapshot(
          fullscreen_wrapper,
          name="st_dataframe-fullscreen_expanded",
      )
  
      # Click again on fullscreen button to close fullscreen mode:
      fullscreen_toolbar_button.click()
      assert_snapshot(
          fullscreen_wrapper,
          name="st_dataframe-fullscreen_collapsed",
      )
  
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 10 for calling a global function with example usage: test_clicking_on_fullscreen_toolbar_button(app, assert_snapshot) without return types