"""Container-scoped submit tier: the middle rung between the below-composer index pick and the by-name 'Send' last resort, plus the expression builder's escaping. The JS itself is proven live (X modal resolves tweetButton, inline resolves tweetButtonInline at hop 20); these tests pin the tier ORDER and the fail-safe parse.""" import pytest from backend.apps.agents.browser import browser_send_script as ss from backend.apps.agents.browser import browser_submit_click as sc from backend.apps.agents.browser.browser_agent import send_submit_index_in_state # Committed fill whose submit ranks OUT of the capped listing (the shape that starves the picker). COMPOSER_FILLED_NO_SEND = '[1]\n[24]' COMPOSER_SENT = '[2]\n[9]