code: def test_data_editor_delete_row_via_hotkey(app: Page):
      """Test that a row can be deleted via delete hotkey."""
      data_editor_element = app.get_by_test_id("stDataFrame").nth(1)
      expect(data_editor_element).to_have_css("height", "248px")
  
      # Select the second row
      data_editor_element.click(position={"x": 10, "y": 100})
  
      # Press backspace to delete row:
      data_editor_element.press("Delete")
  
      # The height should reflect that one row is missing (248px-35px=213px):
      expect(data_editor_element).to_have_css("height", "213px")
  
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 4 for calling a global function with example usage: test_data_editor_delete_row_via_hotkey(app) without return types