code: def test_switch_page_removes_query_params(page: Page, app_port: int):
      """Test that query params are removed when navigating via st.switch_page"""
  
      # Start at main page with query params
      page.goto(f"http://localhost:{app_port}/?foo=bar")
      wait_for_app_loaded(page)
  
      # Trigger st.switch_page
      page.get_by_test_id("stButton").locator("button").first.click()
      wait_for_app_loaded(page)
  
      # Check that query params don't persist
      assert page.url == f"http://localhost:{app_port}/page2"
  
file_path: streamlit/e2e_playwright/multipage_apps/mpa_basics_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_loaded, wait_for_app_run
label_desc: Use image node_id 12 for calling a global function with example usage: test_switch_page_removes_query_params(page, app_port) without return types