def METHOD_NAME(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"
    )