code: def test_can_switch_between_pages_and_edit_widgets(app: Page):
      """Test that we can switch between pages and edit widgets."""
      slider = app.locator('.stSlider [role="slider"]')
      slider.click()
      slider.press("ArrowRight")
      wait_for_app_run(app, wait_delay=500)
  
      app.get_by_test_id("stSidebarNav").locator("a").nth(2).click()
      wait_for_app_run(app, wait_delay=1000)
  
      expect(app.get_by_test_id("stHeading")).to_contain_text("Page 3")
      expect(app.get_by_test_id("stMarkdown")).to_contain_text("x is 0")
  
      slider.click()
      slider.press("ArrowRight")
      wait_for_app_run(app)
  
      expect(app.get_by_test_id("stMarkdown")).to_contain_text("x is 1")
  
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 5 for calling a global function with example usage: test_can_switch_between_pages_and_edit_widgets(app) without return types