code: def test_switch_page(app: Page):
      """Test that we can switch between pages by triggering st.switch_page."""
  
      # Click the button to trigger st.switch_page using relative path
      app.get_by_test_id("baseButton-secondary").click()
      wait_for_app_run(app)
  
      # Check that we are on the correct page
      expect(app.get_by_test_id("stHeading")).to_contain_text("Page 2")
  
      # st.switch_page using relative path & leading /
      app.get_by_test_id("baseButton-secondary").click()
      wait_for_app_run(app)
      expect(app.get_by_test_id("stHeading")).to_contain_text("Page 6")
  
      # st.switch_page using relative path & leading ./
      app.get_by_test_id("baseButton-secondary").click()
      wait_for_app_run(app)
      expect(app.get_by_test_id("stHeading")).to_contain_text(
          "Main Page"
      )
  
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 11 for calling a global function with example usage: test_switch_page(app) without return types