refactor: two-screen app-list editor with native List layout

Screen 1 is a plain List (name field, the apps the list contains via
FamilyControls token Labels, and an Edit Apps button); screen 2 pushes
Apple's FamilyActivityPicker whose Save applies the selection back.
Documents that the picker silently drops selections without real
FamilyControls authorization (mocked in -ui-testing launches).
This commit is contained in:
2026-06-12 20:15:12 -04:00
parent 93f2eceb3a
commit cb9b2e8950
4 changed files with 148 additions and 35 deletions

View File

@@ -58,6 +58,14 @@ final class AppListUITests: XCTestCase {
let nameField = app.textFields["appListNameField"].waitToAppear()
nameField.tap()
nameField.typeText("Focus Apps\n")
// Screen 1 lists the (empty) selection; Edit Apps pushes the Screen
// Time picker, whose Save returns here.
app.element("emptySelectionLabel").waitToAppear()
app.buttons["editAppsButton"].tap()
app.element("selectionCountLabel").waitToAppear()
app.buttons["confirmSelectionButton"].tap()
app.buttons["saveAppListButton"].waitToAppear().tap()
// Saving pops back to the picker with the new list selected.