Address todos in scope form rendering and persistence tests
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3586108. --> Reported by: [kristen pol](https://www.drupal.org/user/8389) ### Scope form field rendering and persistence (7 tests) This test cluster is broader than language scoping. It verifies that scope fields render and persist correctly across both context item forms and agent configuration forms, including language, use case, site section, and tag scopes. The original failure looked language-related because language fields only render as checkboxes on multilingual sites. On single-language sites, production code intentionally shows an informational message instead. The tests should therefore set up a multilingual site and then verify the full scope UI and save/edit flows. These tests cover core CRUD and subscription behavior for scope values. If scope fields do not render or persist, users cannot reliably select scope-based context item targeting or agent subscriptions. | File | Method | Line | |------|--------|------| | `tests/src/Functional/AiContextScopeContextItemFormTest.php` | `testLanguageCheckboxesPresent` | 133 (commented out) | | `tests/src/Functional/AiContextScopeContextItemFormTest.php` | `testSubmittedScopeValuesAreSaved` | 190 | | `tests/src/Functional/AiContextScopeContextItemFormTest.php` | `testEditingShowsSavedScopeValues` | 199 | | `tests/src/Functional/AiContextScopeContextItemFormTest.php` | `testScopeValuesUpdateOnResave` | 208 | | `tests/src/Functional/AiContextScopeAgentFormTest.php` | `testAllScopeTypesShown` | 145 | | `tests/src/Functional/AiContextScopeAgentFormTest.php` | `testSubmittedSubscriptionsAreSaved` | 154 | | `tests/src/Functional/AiContextScopeAgentFormTest.php` | `testEditingShowsSavedSubscriptions` | 163 | **AI usage disclosures:** - [x] AI Assisted Issue - [x] AI Generated Code
issue