code: def test_multiselect_option_over_max_selections(app: Page):
      """Should show an error when more than max_selections got selected."""
      app.locator(".stCheckbox").first.click()
      expect(
          app.locator(".element-container .stException")
      ).to_contain_text(
          "Multiselect has 2 options selected but max_selections\nis set to 1"
      )
  
file_path: streamlit/e2e_playwright/st_multiselect_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 16 for calling a global function with example usage: test_multiselect_option_over_max_selections(app) without return types