code: def test_status_container_rendering(
      themed_app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that st.status renders correctly via screenshots."""
      status_containers = themed_app.get_by_test_id("stExpander")
      expect(status_containers).to_have_count(9)
  
      # Don't check screenshot for first element,
      # since we cannot reliably screenshot test the spinner icon.
  
      assert_snapshot(
          status_containers.nth(1), name="st_status-complete_state"
      )
      assert_snapshot(
          status_containers.nth(2), name="st_status-error_state"
      )
      assert_snapshot(
          status_containers.nth(3), name="st_status-collapsed"
      )
      assert_snapshot(
          status_containers.nth(4), name="st_status-changed_label"
      )
      assert_snapshot(
          status_containers.nth(5), name="st_status-without_cm"
      )
      assert_snapshot(
          status_containers.nth(6),
          name="st_status-collapsed_via_update",
      )
      assert_snapshot(
          status_containers.nth(7), name="st_status-empty_state"
      )
      assert_snapshot(
          status_containers.nth(8), name="st_status-uncaught_exception"
      )
  
imports: 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_status_container_rendering(themed_app, assert_snapshot) without return types