code: def test_displays_expander_and_regular_containers_properly(app: Page):
      """Test that expanders and regular containers are displayed properly."""
  
      main_expanders = app.locator(".main [data-testid='stExpander']")
      expect(main_expanders).to_have_count(5)
  
      for expander in main_expanders.all():
          expect(
              expander.locator(EXPANDER_HEADER_IDENTIFIER)
          ).to_be_visible()
  
      sidebar_expander = app.locator(
          "[data-testid='stSidebar'] [data-testid='stExpander']"
      ).first
      expect(
          sidebar_expander.locator(EXPANDER_HEADER_IDENTIFIER)
      ).to_be_visible()
  
file_path: streamlit/e2e_playwright/st_expander_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run
label_desc: Use image node_id 1 for calling a global function with example usage: test_displays_expander_and_regular_containers_properly(app) without return types